Matthew's Octave Assignment

From Class Wiki
Revision as of 12:37, 3 October 2010 by Btheredude (talk | contribs) (Created page with 'I found that octave opperates in Radian measurements. cos(53)= -0.91828 (radiam) cos(53)= 0.60181 (degree) Normal calculations that can be done on a calculator can be done …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I found that octave opperates in Radian measurements.

cos(53)= -0.91828 (radiam)
cos(53)= 0.60181  (degree)

Normal calculations that can be done on a calculator can be done in Octave.

In order to set up a plot, you must define every variable, and then say plot that variable vs. another variable.

x = linspace(0, 2*pi, 100);
y = sin(x);
plot(x, y, '.')

while choosing the type of lines that you want based on what is in the third column of the plot function.

 '.' = dots
 '@' = crosses
 so on....