Elements of MATLAB and Simulink - Lecture 1 - Percro
Elements of MATLAB and Simulink - Lecture 1 - Percro
Elements of MATLAB and Simulink - Lecture 1 - Percro
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Basics <strong>of</strong> plotting• <strong>MATLAB</strong> provides 2D <strong>and</strong> 3D plotting• Plots concepts– H<strong>and</strong>le to entity (get / set functions)– Axis (limits vs auto-limit)– Subplots (subplot)– Exporting plots for publishing (EMF)– Default Entities: gca (get axis) gcf (get figure)• 3D Plot– surf– Also mesh based plots• Important for Papers/Thesis– Always put labels <strong>and</strong> units <strong>of</strong> measures in axis (xlabel,ylabel)– Sometime adjust default font size– xlabel,ylabel,title,legend• Save Plots– print -f1 -dFORMAT myfile.FORMAT (es. eps emf png jpg)• Animation> Plot Data – lesson1_explot