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 do you use to plot multiple functions in MATLAB?
Think about the plot function and how it combines different y-values.
Why would you use a legend in your plot?
What helps viewers understand which line represents which function?
What is the command to add a legend to a plot in MATLAB?
Think of what helps identify different lines in a graph.
True or False: You can only plot one data set at a time in MATLAB.
Consider what we learned about multi-plots.
Create a MATLAB script that plots the functions y = sin(x), y = 2sin(x), and y = 0.5sin(x). Use different line styles and include appropriate axes labels and a title.
Remember to define your x values first, and vary the line styles.
Explain how changing the line width might contribute to the effectiveness of your plots. Provide a sample MATLAB command to illustrate this.
Consider how a thicker line may change viewer perception of the data.
6 more questions in this section. Enroll free to practise them all.
Enroll free