OK, first of all I would like to say hello to everyone since this is my first post here, didn't know that this forum exists, nice to be here
Here's the thing...
I have to arrays: time and voltage, both of them containing data
the problem is that I am looping through time and fetching the appropriate value of voltage like this:
- first getting the index of the time value in a time array
- and then getting the voltage value from a voltage array by the index
The problem is the following, some particular value of time exists in the array but 'find' method doesn't return the right result, rather it returns 1x0 matrix, so it returns null...
What and where can be the problem...Even when I type :
index = find (time_array == 1.2345) it returns 1x0 matrix
and the value of 1.2345 exists in the matrix!!
Please help me cause I've tried debugging it but was unfortunate