IF Statements and Matricies
MathCAD Prime 3.0
ISSUE 1: I have a square matrix representing collected test data. The data near zero is due to measurement inaccuracy. Thus, I would like to run it through a "filter" to make it zero in a resultant matrix. In Excel, a simple =if(x>1,x,if(x<-1,x,0) is the way to evaluate a given value. I have tried putting IF statements in a resultant matrix to "filter" the values, but Prime 3.0 crashes every time. What is a work around or better way to do this?
ISSUE 2: Now after getting the above to work, I need a clever solution to comparing matricies. I would like to compare the resultant matrix from above to another same size square matrix relative to whether the value is zero, negative or positive. I am specfically looking for a sign change indicating a change in direction fo displacement between what is measured in a test and what is predicted in an FEA simulation. (For the curious: I am comparing the shape of a structure based on 3 points and their X, Y, Z positions.)
Thoughts?
Thanks ahead of time for any help you can provide.
