Multiple functions

ongfufu's picture

How do I graph multiple functions on the same plot, and possibly with different colors for each line. Thanks in advance.

edgar's picture

try

plot([x^2/20,sin(x),2-x], x=0..5, color=[red,black,green]);

If you live in Canada (or even if you don't) you can write colour for color.

---
G A Edgar

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}