chapter 7 Flashcards
plot( )
represents data graphically
line plot
connects data points with lines, auto is using the element index as x and the stored value as y
plot(x, y, ‘o’)
the o makes points visible
axis([0, 10, 15, 50])
sets x limits (0-10) and y limits (15-50), apply after plot command
yyaxis
enables dual y axis plotting on left and right sides
loglog
plots logx and logy
semilogy
plots log y and linear x
semilogx
plots log x and linear y
stairs
creates stair step graph
grid
adds grid to the graph
gtext
allows positioning of text with mouse
figure(n)
makes figure number “n” for current plot
hold on
allows multiple plots to superimpose on same axis
hold off
releases current plot and allows new graph to be drawn
close(n)
closes figure number n