Difference between revisions of "User:Alice"

From PrattWiki
Jump to navigation Jump to search
 
Line 1: Line 1:
add a section to your Pratt Pundit user page describing which of the MATLAB demonstrations is your
 
favorite and why.
 
 
  
 
==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" commend. After assigning the starting point, change in x value, and y function, for example, to plot a graph I simply commend "plot(x,y)."
+
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)."
Labeling axes and giving a title is also simple. The commend for MATLAB to label axes is "label." For example, if I want to label my x axis
+
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.