Plots Flashcards

1
Q

MATLAB 2D plot types

A

Pie chart = Pie([vector values])
Bar chart = Bar(x,y)
Line chart = plot(x,y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Saving/loading an image

A
Saving = imread('image name')
Loading = image(variable name)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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’)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Plotting a histogram

A

Hist(variable,num of points)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Labelling axes of plot and placing legend

A
X-axis= xlabel('label')
Y-axis= ylabel('label')
Title= title('label')
Legend = legend('label')
How well did you know this?
1
Not at all
2
3
4
5
Perfectly