Header Ads

Header ADS

Octave Tutorial



I. STARTING OCTAVE AND BASIC COMMANDS

1. Open terminal and type octave.
2. An octave prompt will appear.
3. Calculator

octave:1> 3+2
ans = 5
octave:2> sin(pi/4)
ans = 0.70711
octave:3> exp(-0.5^2)
ans = 0.77880


4. Variables

octave:4> a=4
a = 4
octave:5> b=5
b = 5
octave:6> c=a*b
c = 20
octave:7> c=c-4
c = 16

For more examples click on the following link:

http://www.physics.metu.edu.tr/~hande/teaching/octave-tutorial.pdf


No comments

Powered by Blogger.