Difference between revisions of "File:SinCosPlot1.png"
From Sutherland_wiki
(Switch to png format.) |
|||
Line 1: | Line 1: | ||
− | + | <source lang="matlab"> | |
+ | x = linspace(-pi,pi); | ||
+ | f1 = cos(x); | ||
+ | f2 = sin(x); | ||
+ | plot(x,f1,'g-', x, f2, 'r--'); | ||
+ | xlabel('x'); ylabel('f(x)'); | ||
+ | legend('cos(x)','sin(x)'); | ||
+ | </source> |
Latest revision as of 17:17, 23 August 2008
x = linspace(-pi,pi);
f1 = cos(x);
f2 = sin(x);
plot(x,f1,'g-', x, f2, 'r--');
xlabel('x'); ylabel('f(x)');
legend('cos(x)','sin(x)');
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 17:16, 23 August 2008 | 552 × 414 (7 KB) | 00033394 (talk | contribs) | Switch to png format. |
- You cannot overwrite this file.
File usage
The following page links to this file: