Skip to main content
1-Visitor
November 11, 2020
Solved

Matlab to Mathcad Vectors and Matrix

  • November 11, 2020
  • 1 reply
  • 2182 views

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 

Best answer by AlanStevens

You could simply do it like this

idx.jpg

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

 

Alan

1 reply

23-Emerald IV
November 11, 2020

Something like this?

LucMeekes_0-1605119021629.png

Success!
Luc

1-Visitor
November 11, 2020
 
 
 
 
 

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

19-Tanzanite
November 11, 2020

You could simply do it like this

idx.jpg

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

 

Alan