 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] SV: RE: How to fill a column of a matrix?
| [mathcad] SV: RE: How to fill a column of a matrix? |
|
Author: Gundermann, Jesper
Posted: Wed, 18 Jan 2006 12:06:12 +0100
|
About replacing a column: use the upper index <> (in the matrix palette)
Fra: Pergande, Albert N "mailto:albert.n.pergande"
Sendt: 17. januar 2006 16:16
Til: Mathcad Discussion List
Emne: [mathcad] RE: How to fill a column of a matrix?
I'd make a loop from 0 to rows-1, and write A[col, I := data[I
You've hit on the problem that makes arrays of arrays useless in faking multidimensional arrays - you can't replace a single element inside that structure...
Al Pergande
Senior Radar Engineer
Lockheed Martin Missiles and Fire Control
MP 200
5600 Sandlake Road
Orlando, Fl 32819
Voice 407-356-5169
Fax 407-356-0933
"albert.n.pergande"
for personal mail - "al"
From: Marc Artzrouni "mailto:marc.artzrouni"
Sent: Tuesday, January 17, 2006 8:52 AM
To: Mathcad Discussion List
Subject: [mathcad] How to fill a column of a matrix?
MathCad has several clever "vectorization-type" capabilities - but there is one simple thing I can't find. Suppose I have a 3 by 3 matrix A and I want to put in the second column some other column vector V. how can I do that in one fell swoop without having to write a silly loop? "Augment" and "stack" don't help. It would be something like the submatrix function, except that submatrix works only to extract a submatrix - not to write into one. Using the same idea as submatrix one could imagine a "submatrixin" function like
submatrixin(A, 1,3,2,2) = V that would put V in the second
col of A.
Could there be something like that in recent versions that I don't have in MathCad2001i?
Many thanks
Marc Artzrouni
--
Marc Artzrouni
Département de Mathématiques (IPRA)
Université de Pau - BP 1155
64013 Pau Cedex
FRANCE
Home page/page perso:
http://www.univ-pau.fr/~artzroun/
**********************************
tel: + 33 - (0)5 59 40 75 50
fax: + 33 - (0)5 59 40 75 55
e-mail: "marc.artzrouni"
**********************************
|
|
Attachments:
easy.gif
|
[View Complete Thread]
Previous by date: [mathcad] Re: DSP method, Oakley, Philip SELEX UK
Next by date: [mathcad] Re: Help with creating a vector, Sven Lindhardt
Previous thread: [mathcad] How to fill a column of a matrix?, Marc Artzrouni
Next thread: [mathcad] Re: Help with creating a vector, Stuart Bruff
|
|
|