05-21-2015 12:23 AM
I have a 2D array which i want to split into 2 subset using a condition. Say i have
X y
125 1.5
585 1.1
798 1.0
1054 0.75
3586 1.12
i need to split the array to two subsets with thos eof below 1000 and above 1000.
help please...
05-21-2015 12:38 AM
What have you tried so far? Attach your work. This sounds like homework.
This is a relatively easy problem. We can point you in the right direction but don't expect us to do your homework for you. Take a look at for loops and tunnel indexing
05-21-2015 12:50 AM
no it is not.
it is a part of a whole analysis program im making.
You see i have summary of frequency peaks which changes every signal i input. i need a subset array for those peaks recognized as below 1000 and above 1000.
05-21-2015 01:45 AM
05-21-2015 02:33 AM
@GerdW wrote:
Hi camr,
so you should change that fixed "index" input to some variable value - using a search function would be a good idea…
can you suggest a search function?
i tried using search 1D function but it wont work as my array values never coincide with 1000. its index location also varies.
05-21-2015 02:40 AM
Threshold 1D Array will do what you want…
05-21-2015 02:46 AM
threshold array wont work as I have a 2D aray. I have tried that as well and doesnt work.
05-21-2015 02:48 AM - edited 05-21-2015 02:48 AM
05-21-2015 02:59 AM
@GerdW wrote:
But it will work on your 1D X value column…
yes it will work but the value is wrong... thus it wont give me my desired output
05-21-2015 02:59 AM
@GerdW wrote:
But it will work on your 1D X value column…
yes it will work but the value is wrong... thus it wont give me my desired output