1337Hendrix
03-01-2009, 04:45 PM
Alright, so I'm having quite the headache trying to figure out this simple filtering problem using MATLAB.
I'm not too familiar with MATLAB syntax or structure, so I'm having a much harder time writing my m-file than I would be in C++. :facepalm:
Anyways, so, I have a 1x2000x252 matrix of voltage readings, and a 1x2000 matrix of where they occurred in time.
I need to find all voltages greater than an inputted threshold, find where they occurred in time, and place them in a 2-D array with the first column being voltage and the second being time.
I linearly indexed the voltage values using the find command, but I'm not sure how to progress further, ie finding what the value was and finding where that occurred in time, then placing it in an array.
Any help??
Thanks!
I'm not too familiar with MATLAB syntax or structure, so I'm having a much harder time writing my m-file than I would be in C++. :facepalm:
Anyways, so, I have a 1x2000x252 matrix of voltage readings, and a 1x2000 matrix of where they occurred in time.
I need to find all voltages greater than an inputted threshold, find where they occurred in time, and place them in a 2-D array with the first column being voltage and the second being time.
I linearly indexed the voltage values using the find command, but I'm not sure how to progress further, ie finding what the value was and finding where that occurred in time, then placing it in an array.
Any help??
Thanks!