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

Programing Matlab to Mathcad Function Find

  • November 10, 2020
  • 1 reply
  • 2172 views

Hi, Iยดm translating some matlab codes to mathcad  and I have had problems with the function Find.

Matab:

Vs30= Value

Vlin= Vector 23x1

idx = find(Vs30 < V_lin);

 

In Mathcad it says that idx is undefined.

 

JB_9681141_1-1605041470138.png

 

It should return a vector 23x1

 

Please help me, Thank u !

 

Best answer by Fred_Kohlhepp

That would be   match

Fred_Kohlhepp_0-1605067172733.png

 

 

1 reply

23-Emerald I
November 10, 2020

The command "Find" in Mathcad is the end of a specific construction, a solve block.  It's not clear what you're trying to do.  If you want a 23 element vector, all V30 value, I'd do it this way:

Fred_Kohlhepp_0-1605043581318.png

 

1-Visitor
November 10, 2020

I need this function 

 

find(X) returns a vector containing the linear indices of each nonzero element in array X  but in Mathcad

23-Emerald I
November 11, 2020

That would be   match

Fred_Kohlhepp_0-1605067172733.png