Difference between revisions of "File:SinCosPlot1.png"

From Sutherland_wiki
Jump to: navigation, search
(Switch to png format.)
 
 
Line 1: Line 1:
Switch to png format.
+
<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/TimeThumbnailDimensionsUserComment
current17:16, 23 August 2008Thumbnail for version as of 17:16, 23 August 2008552 × 414 (7 KB)00033394 (talk | contribs)Switch to png format.
  • You cannot overwrite this file.

The following page links to this file: