[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: indexing in octfile
From: |
Paul Thomas |
Subject: |
Re: indexing in octfile |
Date: |
Tue, 8 Feb 2005 19:44:50 +0100 |
Brian,
The class functions insert,
Matrix & insert (const Matrix &a, int r, int c)
Matrix & insert (const RowVector &a, int r, int c)
Matrix & insert (const ColumnVector &a, int r, int c)
Matrix & insert (const DiagMatrix &a, int r, int c)
fill
Matrix & fill (double val, int r1, int c1, int r2, int c2)
and extract
Matrix extract (int r1, int c1, int r2, int c2) const
Matrix extract_n (int r1, int c1, int nr, int nc) const
do what you want, rather more naturally than assignment.
Paul T
-------------------------------------------------------------
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
-------------------------------------------------------------