How to plot a graph in MATLAB program
Answers
Answered by
0
In the Command Window, define xas a vector of 50 linearly spaced values between 1 and 10. Define y as the sine function.
x = linspace(1,10,50); y = sin(x);
In the Workspace panel in the MATLAB desktop, select the variables to plot. Use Ctrl + click to select multiple variables.
x = linspace(1,10,50); y = sin(x);
In the Workspace panel in the MATLAB desktop, select the variables to plot. Use Ctrl + click to select multiple variables.
Answered by
0
Make two line segment
X axis and y axis
X axis a horizontal line
Y axis a vertical line interesting x axis
Then write no eg Shown picture eg
Attachments:
Similar questions