cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

creating a new vector from a matrix using a selection criterion

M_U
9-Granite
9-Granite

creating a new vector from a matrix using a selection criterion

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 4
LucMeekes
23-Emerald III
(To:M_U)

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

LucMeekes
23-Emerald III
(To:M_U)

Are you looking for this:

LM_20180904_Extremes.png

 

Success!
Luc

Fred_Kohlhepp
23-Emerald I
(To:M_U)

Just as an exercise using Express

Capture1.PNG

Werner_E
24-Ruby V
(To:M_U)

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

B.png

 

 

Top Tags