[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Displaying a submatrix in Octave
From: |
Ben Sapp |
Subject: |
Re: Displaying a submatrix in Octave |
Date: |
Tue, 10 Jul 2001 08:01:36 -0600 |
You can find "m" and "n" with the size command.
Something like this:
s = size(A); A(m1:s(1), n1:s(2))
"Dadgar Javid, Gholamreza" wrote:
>
> Hi all,
>
> I'm a newee in Octave. Could anyone give me a hint ?
>
> I have a m X n matrix (say A) and I want to specify a submarix of A,
> beginning from row m1 and column n1. Of course A(m1:m, n1:n) does this.
> But in my case the values of "m" and "n" are not known (their values
> change during the program). Is there any similar command which does
> the same as A(m1:m, n1:n) WHEN m AND n ARE NOT KNOWN ?
>
> Many thanks in advance.
>
> G.D. Javid
> Email: address@hidden
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
--
Ben Sapp Los Alamos National Laboratory
email: <mailto:address@hidden> Phone: (505)667-3277
Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/
--
-------------------------------------------------------------
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
-------------------------------------------------------------