cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab to Mathcad Vectors and Matrix

SOLVED
JB_9681141
Participant

Matlab to Mathcad Vectors and Matrix

Hi, I´m translating some matlab code into a Mathcad, I need to overwrite indices in vectors

 

Matlab does it like this:

f_site 23x1 Vector

idx 13x1 Vector wich has the indices i need to overwrite.

f_site(idx)=...

 

In Mathcad I cant do it like this

 

JB_9681141_0-1605117849982.png

Thank u 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Matlab to Mathcad Vectors and Matrix

You could simply do it like this

idx.jpg

using the same approach to identifying the appropriate values of theta12, cc etc.

 

Alan

View solution in original post

3 REPLIES 3

Re: Matlab to Mathcad Vectors and Matrix

Something like this?

LucMeekes_0-1605119021629.png

Success!
Luc

Re: Matlab to Mathcad Vectors and Matrix

 
 
 
 
 

Yes that could work but  I need to call out the indices of vector to overwrite them like this:

 

 
 
 
 
 

d74b5dc1-b277-4595-8899-70e8c4eb1805.jfif

Re: Matlab to Mathcad Vectors and Matrix

You could simply do it like this

idx.jpg

using the same approach to identifying the appropriate values of theta12, cc etc.

 

Alan

View solution in original post

Announcements
Check out the latest
Mathcad Tip
"PTC Mathcad 15 / Prime 1-6 Update."