To plot 3 curves versus x in a single command in MATLAB, you can use the plot
command with multiple inputs:
main.m155 chars7 lines
This code will generate a single plot with each curve in a different color, and a legend identifying each curve. You can adjust the line styles and colors by passing additional arguments to the plot
command, as described in the MATLAB documentation.
gistlibby LogSnag