Creating a vector subset based on criteria
- March 29, 2011
- 1 reply
- 5105 views
Dear fellow MatchCad users,
I have several data sets (mechanical torque test data in Excel files) that I need to process, one file at a time. Each file is initially read into a matrix and then three vectors are extracted by columns. I want to calculate mean, median, max and standard deviation of the data. In the attached graphic you can see that there are many zero readings. I'd like to calculate those values while excluding the zeros, or say by excluding the values below some criteria that I choose later.
I am thinking the best way to do this is to create 'a program' which will assign a new vector with the values which pass my criteria test (ie, zeros removed). Since I'm calculating based on the results, I can't have NaN values in the vectors. Unfortunaelty I'm too novice in MathCad to understand the programming toolbar.
I already have the data import, vector statistics and plotting working. Can anyone offer suggestions on programming?
Best regards,
Joe

