From help-request at octave dot org Tue Feb 8 12:39:19 2005 Subject: Re: indexing in octfile From: "Paul Thomas" To: "Brian Blais" , 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 -------------------------------------------------------------