help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: New... and need a bit of help.


From: William Krekeler
Subject: RE: New... and need a bit of help.
Date: Mon, 29 Nov 2010 18:39:28 +0000

Open octave issue the following commands followed by <return>.

cd C:/ programfinder/

physicsoptional

 

Bill Krekeler
Electro-Optics Engineer
CET, LLC
address@hidden

 

From: jacob Banderob [mailto:address@hidden
Sent: Monday, November 29, 2010 12:39 PM
To: address@hidden
Subject: New... and need a bit of help.

 

I have recently gotten some help from a neighbor writing out some code for a simple simulation, I just need some help as to running the program from the octave command window, It was written in notepad ++

Here is the code:

 

dtheta = 1;

theta = [0:dtheta:180];

theta_rad = pi*theta/180;

Ma = -6*cos(theta_rad)*6 - 6*sin(theta_rad)*3;

plot(theta, Ma);

xlabel (theta);

ylabel (Ma);

 

I have it saved somewhere at C:/ programfinder/ physicsoptional.m

but what would I put into the octave window to get it to run?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]