Homework 5 Flashcards
(9 cards)
1
Q
img=imread(image)
A
downloads the image into a matrix
2
Q
rot90(image,x)
A
rotates the image 90 degrees an x number of times
3
Q
cut out a piece of the picture
A
[rows, cols] = size(img)
cut1=(rows/2,cols/2)
pic2=cut1
4
Q
sort()
A
sorts data in ascending or descending order
5
Q
subplot(a,b,c)
A
creates a series of plots displayed by a by b with the plot below the command being the c order plot
6
Q
plot(x,y,color)
(can also be- plot(data,color)
A
plots a graph of x by y with a line/symbol according to what is provided
7
Q
histogram(x,a)
A
creates a histogram from a matrix with an x number of bins
8
Q
gtext()
A
allows text to be placed manually on a graph/plot
9
Q
A