David's Octave Assignment: Difference between revisions
Jump to navigation
Jump to search
David.morgan (talk | contribs) (Created page with 'I followed the Instructions "Read this first!!" For acquiring a copy of Octave. I just copied it to my flash drive from a computer lab pc. I played around with Octave as instru…') |
David.bryson (talk | contribs) No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
You can abort any command in octave by pressing Ctrl C. |
|||
I followed the Instructions "Read this first!!" For acquiring a copy of Octave. I just copied it to my flash drive from a computer lab pc. |
|||
and you can create a diagonal matrix by entering diag([1 2 3]) |
|||
I played around with Octave as instructed, But I still don't understand it very well. I plotted a couple graphs, but I don't understand the proper syntax format for Octave, I got many syntax errors because I'm not familiar with the symbols and code for entering functions and commands. |
|||
it looks like this. |
|||
diag([1 2 3]) |
|||
If I enter: |
|||
y=x; |
|||
plot (x,y) |
|||
ans = |
|||
then it plots the graph of y=x. |
|||
1 0 0 |
|||
But when I enter: |
|||
0 2 0 |
|||
y=x^2; |
|||
0 0 3 |
|||
plot (x,y) |
|||
it says: error: For A^B, A must be square. |
|||
I'm confused, but Hopefully I'll figure out more in the future. |
|||
I spent 1 hour installing this program and trying to figure it out. |
|||
David |
Latest revision as of 09:10, 4 October 2010
You can abort any command in octave by pressing Ctrl C.
and you can create a diagonal matrix by entering diag([1 2 3]) it looks like this.
diag([1 2 3])
ans =
1 0 0 0 2 0 0 0 3