Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mathcad Matrix Syntax 1

Status
Not open for further replies.

kinzin

Structural
May 4, 2011
2
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.
 
Replies continue below

Recommended for you

sorry, wrong program

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
 
Use the vectorize operator (Ctrl+-) on the quotient A/B.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor