Documente Academic
Documente Profesional
Documente Cultură
Written Instructions
Visual Instructions
Figure 10:
Figure 11:
Figure 12:
Figure 13:
Figure 14:
Figure 15:
Input: plot(x,y,o)
Input: plot(x,y,x,y,s)
9. Along with adding symbols
to our graph we can also change
its color. To do this input:
plot(x,y,x,y,insert
symbol,color,insert color)
Where the command says insert
symbol place the letter for the
symbol of your choice.
Where the command says insert
color place the letter for the
color of your choice.
Options include:
r=red
y=yellow
b=blue
g=green
Input:
plot(x,y,x,y,o,color,g)
Your graph should now match
Figure 16.
Figure 16:
Figure 17:
Figure 18:
By using the input, plot(x,y,-,x,r,-), MATLAB plots the original curve as well as the new linear regression
line on the same graph. This is shown in the image below.
This is the end of the instructions on the basic calculating and graphing functions of MATLAB. To continue to
refine your MATLAB skills you can practice calculating/ graphing various functions and sets of data using the
commands that you have just learned. If you have any questions that these instructions have not answered input,
help, into the command bar and you will be given a list of help options for the program where you will be able
to find your answer.