Plots Flashcards
1
Q
MATLAB 2D plot types
A
Pie chart = Pie([vector values])
Bar chart = Bar(x,y)
Line chart = plot(x,y)
2
Q
Saving/loading an image
A
Saving = imread('image name') Loading = image(variable name)
3
Q
Changing color and pattern of markers on plot
A
Plot(x,y,’color code&pattern’)
Eg: red and square markers
Plot(x,y,’rs’)
4
Q
Plotting a histogram
A
Hist(variable,num of points)
5
Q
Labelling axes of plot and placing legend
A
X-axis= xlabel('label') Y-axis= ylabel('label') Title= title('label') Legend = legend('label')