Mathcad Matrix Syntax
Mathcad Matrix Syntax
(OP)
I am trying to write a loop in which a formula
(such as: A = b / c ),
in which b and c are both nx1-sized matrices, returns a result by applying the formula one index at a time
(result should be: A = [b1/c1 b2/c2])
instead of performing the operation on the whole matrix.
Thanks.
(such as: A = b / c ),
in which b and c are both nx1-sized matrices, returns a result by applying the formula one index at a time
(result should be: A = [b1/c1 b2/c2])
instead of performing the operation on the whole matrix.
Thanks.
RE: Mathcad Matrix Syntax
A=b./c
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: Mathcad Matrix Syntax
The horrible way is
ii:1;n
A[ii:b[ii /c[ii
but I'm sure there is an element by element command
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: Mathcad Matrix Syntax
RE: Mathcad Matrix Syntax
Thanks so much!