Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X
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.
It should return a vector 23x1
Please help me, Thank u !
Solved! Go to Solution.
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:
I need this function
find(
returns a vector containing the linear indices of each nonzero element in array X
)X but in Mathcad
That would be match
Just to add a small point to Fred's reply: note that indexing in Mathcad starts at 0 by default, though this can be changed using ORIGIN = 1 to match MATLAB's starting index.
Alan