Andrew's Octave Assignment: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Installing Octave ==
=== IMPORTANT! READ ME FIRST! ===

----


To install Octave, go to one of the computers in the computer lab and copy C:\Octave to a thumb drive. Then paste the Octave folder to your C:\ drive. This will save you at least 30 minutes and a headache.
To install Octave, go to one of the computers in the computer lab and copy C:\Octave to a thumb drive. Then paste the Octave folder to your C:\ drive. This will save you at least 30 minutes and a headache.
Line 8: Line 6:


Octave does not have to be in the computer's registry. I am running octave from my thumb drive so I can have it on any computer I want.
Octave does not have to be in the computer's registry. I am running octave from my thumb drive so I can have it on any computer I want.

==Playing with Octave==

With this I made a simple plot with labels, a title, and a legend. Then I saved it as a png file.

[[File:Xplot.png|500px|thumb|right|Plot of the script Xplot.m]]

clear all
close all
x=0:.1:10;
plot (x,x,'b-')
xlabel ('x label')
ylabel ('y label')
title ('title')
grid on
legend ('y=x')
print ('Xplot.png','-dpng');

Latest revision as of 14:33, 29 September 2010

Installing Octave

To install Octave, go to one of the computers in the computer lab and copy C:\Octave to a thumb drive. Then paste the Octave folder to your C:\ drive. This will save you at least 30 minutes and a headache.

The executable file is C:\Octave\3.2.3_gcc-4.4.0\bin\octave.exe

Octave does not have to be in the computer's registry. I am running octave from my thumb drive so I can have it on any computer I want.

Playing with Octave

With this I made a simple plot with labels, a title, and a legend. Then I saved it as a png file.

Plot of the script Xplot.m
clear all
close all
x=0:.1:10;
plot (x,x,'b-')
xlabel ('x label')
ylabel ('y label')
title ('title')
grid on
legend ('y=x')
print ('Xplot.png','-dpng');