Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What command is used to create a simple plot in MATLAB?
Think of how you can visualize two variables together.
How do you define a vector of x-values ranging from 0 to 10 in increments of 1?
Take note of the colon operator for defining ranges.
What does the command plot(x, y) do in MATLAB?
Recall what we do with our defined vectors.
True or False: Both x and y vectors for plotting must be of different lengths.
Think back to our discussions on vector requirements.
Create a plot that overlays the functions y = x^2 and y = x^3 for x ranging from -5 to 5. Make sure to include proper labels and a legend.
Use element-wise operations for squaring and cubing.
Plot the first derivative of the function y = sin(x) from 0 to 2π. Include grid lines and title.
The derivative of sin(x) is cos(x), can you find it?
5 more questions in this section. Enroll free to practise them all.
Enroll free