MATLAB INSTRUCTIONS

MATLAB INSTRUCTIONS - Miscellaneous MATLAB INSTRUCTIONS ALL...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Miscellaneous MATLAB INSTRUCTIONS ALL MATLAB .m FILES ARE IN THE  d:\programs\MATLABR11\work\  DIRECTORY. Starting a line with a percent % makes it a remark. Begin your text file as follows: % Name % social security number % Assignment # Selecting Help in the plot window calls up a very helpful PDF document called "Using  Matlab Graphics." commands for plotting and labeling graphs: xlabel('x axis name') %labels the x axis ylabel('y axis name')  %labels the y axis title('Title for My Graph')  %puts a title on the plot plot(x,y), grid %plots x vs. y with a grid Plotting multiple graphs plot(y1, '-.' )   %plots using dash-dot hold on plot(y2, '-' ) %plots using a solid line hold off You can also use: '- -' % dashed line ':' % dotted line If you wish to observe one graph at a time, you can use the  pause  command. plot(y1,
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

MATLAB INSTRUCTIONS - Miscellaneous MATLAB INSTRUCTIONS ALL...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online