×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

change a value in a matrix

change a value in a matrix

change a value in a matrix

(OP)
Hi,

I am using MathCAD 14.

I'm having trouble assigning a new value to a specific position in a matrix.

Example:
I'd like to change the value of X[0,1 (first column, 2nd row)
I thought of something like this (which apparently isn't working as expected):
X[0,1 := 5  


All help is appreciated.

Regards,

RJ

RE: change a value in a matrix

(OP)
LOL,

Apparently in a 2d matrix it works just fine (I meant to simplify the problem),
However, the matrix I'm isn't a normal matrix...

I have a couple of matrices inside another matrix... (a 3d matrix of some sorts).

This comes down to:
X[0,1[0,1:=1 (Which isn't working as expected)
 

RE: change a value in a matrix

Since nobody took the bait: M:=X.Ni[1,1 and M[1,1:=NaN works just fine.

RE: change a value in a matrix

(OP)
Nice,..why didn't I think of that in the first place...

Thanks!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources