Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What does the linspace function do?
Think about how you would divide a range into equal parts.
Use linspace to create a vector with 10 points between 1 and 5.
Recall the syntax: linspace(start, end, number_of_points).
What is the output of linspace(1, 10, 5)?
Think about how many numbers are between 1 and 10 at equal intervals.
True or False: The linspace function should always have three arguments.
Consider if there's a case when fewer arguments are needed.
Create a vector using linspace that contains 200 points between 10 and 30, then plot the function y = 2x + 3 over that interval.
Ensure you understand how to set up the linear space and perform the operations.
Using linspace, generate a vector that splits the range of temperatures from -10 degrees to 20 degrees into 15 evenly spaced values. Then explain how this might be useful.
Consider practical applications of temperature data.
4 more questions in this section. Enroll free to practise them all.
Enroll free