t=-0.8:0.001:0.8; find(t==0.2)%try to find out the index of t=0.2; See the result. And it is empty. I think it is a bug of the Matlab. Then try to type. find(t==0); the result will show up. If change t=-0.6:0.001:1; find(t==0.2)will be show up. I am not sure what is wrong with the Matlab or if there is something wrong with my understanding about the function.
MATLAB: Is there something wrong with the find function
basic find functionfaq 6.1floating point
Related Question
- I am supposed to plot the given figure on matlab
- There is no update of variables, if I iterate them in for-loop !
- Problem with mathematical operations
- I want to solve an equation which is complex in nature as well as complex in structure. I wrote a simple code which is not working. I have no idea how to solve that equation. I am attaching the code that i wrote and equation image
Best Answer