 |
|
List Archives > 
Mathcad List Archive > 
Archive by date > 
This Month By Date > 
This Month By Topic
[mathcad] RE: How to fill a column of a matrix?
| [mathcad] RE: How to fill a column of a matrix? |
|
Author: Oakley, Philip SELEX UK
Posted: Tue, 17 Jan 2006 16:08:04 +0000
|
Ultra easy (once you know how! ;)
if a=3x3, b=3x1 matrix/vector
a<1>:=b [i.e. type" a ctrl-6 1 : b enter"]
This assigns b to column 1 of a
Philip
From: Marc Artzrouni "mailto:marc.artzrouni"
Sent: 17 January 2006 13:52
To: Mathcad Discussion List
Subject: [mathcad] How to fill a column of a matrix?
*** WARNING ***
This mail has originated outside your organization,
either from an external partner or the Global Internet.
Keep this in mind if you answer this message.
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"
**********************************
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
|
[View Complete Thread]
Previous by date: [mathcad] Re: DSP method, Quang-Viet Nguyen
Next by date: [mathcad] Re: How to fill a column of a matrix?, Stuart Bruff
Previous thread: [mathcad] Re: Help with creating a vector, Stuart Bruff
Next thread: [mathcad] RE: How to fill a column of a matrix?, Oakley, Philip SELEX UK
|
|
|