[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
matrix row
From: |
Mukesh |
Subject: |
matrix row |
Date: |
Mon, 19 Sep 2005 12:08:19 +0530 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924 |
hello,
i was just wondering if one can point to a complete row of a matrix.
for example, i hav a matrix 'a=[ 1, 1, 2; 3, 5, 8; 13, 21, 34 ]' and i
want to print first row of the matrix '[ 1, 1, 2 ]'..
but writing a(1) on the octave prompt doesnt give me that..
octave:46> a = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ]
a =
1 1 2
3 5 8
13 21 34
octave:47> a(1)
ans = 1
--
Thanx and Regards,
Mukesh Khatri
-------------------------------------------------------------
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
-------------------------------------------------------------