Difference between revisions of "User:Alice"
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
==My Favorite MATLAB demonstrations: 2-D Plots== | ==My Favorite MATLAB demonstrations: 2-D Plots== | ||
− | MATLAB makes it easy to plot a function by using "plot" | + | MATLAB makes it easy to plot a function by using "plot" command. After assigning the starting point, change in x value, and y function, to plot a graph I simply have to command "plot(x,y)." |
− | + | There are various ways to change the visual design of the graphs by choosing colors and shapes. For colors, if I want to make the color for rad is "r", black is "k", blue is "b", magenta is "m", cyan is "c", yellow is "y", green is "g", and white is "w". If I want the function to be graphed in solid line I use "-". The symbol for dot-dashed line is "-." and circles is 'o'. | |
+ | The commands for labeling axes and giving title are also simple. The command for MATLAB to label axes is "label." | ||
+ | In a nutshell, customizing graphs was easy and fun to experiment with. |
Revision as of 20:40, 21 September 2017
My Favorite MATLAB demonstrations: 2-D Plots
MATLAB makes it easy to plot a function by using "plot" command. After assigning the starting point, change in x value, and y function, to plot a graph I simply have to command "plot(x,y)." There are various ways to change the visual design of the graphs by choosing colors and shapes. For colors, if I want to make the color for rad is "r", black is "k", blue is "b", magenta is "m", cyan is "c", yellow is "y", green is "g", and white is "w". If I want the function to be graphed in solid line I use "-". The symbol for dot-dashed line is "-." and circles is 'o'. The commands for labeling axes and giving title are also simple. The command for MATLAB to label axes is "label." In a nutshell, customizing graphs was easy and fun to experiment with.