help-octave
[Top][All Lists]

## m to oct dictionary

 From: Keith Goodman Subject: m to oct dictionary Date: Thu, 19 Jan 2006 13:14:55 -0600

```I need help filling in my m-to-oct dictionary. (Are the last 6 just
the same example of calling a built-in oct function?) Can you think of

a'
a.transpose()

a + b
a + b

a - b
a - b

a.*b
product(a,b)

a./b
quotient(a,b)

a*b
a*b

a/b
a/b

a^2
???

a.^2
???

eye(n)
DiagMatrix(n,n,1)

a = zeros(n,m)
Matrix a(n,m,0)

a = ones(n,m)
Matrix a(n,m,1)

repmat(a,3,2)
???

size(a,1)
a.rows()

size(a,2)
a.columns()

a(:,3)
a.column(2)

a(3,:)
a.row(2)

a(:,3:5)
???

a(3,:) = b.*c
a.insert(product(b,c), 2, 0)

a.*(b > c)
???

[x,y] = max(a)
???

[x,y] = min(a)
???

inv(a)
???

exp(a)
???

log(a)
???

[x,y] = eig(a)
???

-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------

```