Skip to main content
1-Visitor
September 4, 2018
Question

creating a new vector from a matrix using a selection criterion

  • September 4, 2018
  • 4 replies
  • 2626 views

Hello,

I'm having a problem in a routine I created to parse a data. I have a data, which is attached. I need to calculate the average values ​​that are close to the maximum and the minimum. After that, I need to average those values ​​and then subtract them. I made a routine that takes the values ​​close to the maximum value, but when I set them to a new table, values ​​that do not meet the established criteria are zero in the new vector. I wanted the new vector to have the ordered ones and that there were no valances that did not meet the criteria. The program is also attached.

 

thank you

4 replies

23-Emerald IV
September 4, 2018

Rather than selecting those values that are close to the maximum or minimum, your program selects values that are at least 0.04 less than the maximum value (and nothing about the minimum). So more distant than 0.04 from maximum. That is opposite to 'close to'....

What exactly are you trying to accomplish?

 

Luc

23-Emerald IV
September 4, 2018

Are you looking for this:

LM_20180904_Extremes.png

 

Success!
Luc

23-Emerald I
September 4, 2018

Just as an exercise using Express

Capture1.PNG

25-Diamond I
September 4, 2018

Not sure but could it be that you are looking for something similar to this:

B.png