Finding Values in a file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello, I have a file named as " model_data".
![talha3.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/256898/talha3.jpeg)
In the first column, there are different values from 0 to 0.1216. I want to develop a program in such a way that if a user enters a value of 0.1 The program should tell the user in which row/ or in between which rows the value lies of the first column.
3 Kommentare
Walter Roberson
am 24 Dez. 2019
The == operator is a bit-for-bit exact comparison . Your table entry probably only displays as 0.0751 and is probably not 0.075100000000000000088817841970012523233890533447265625 exactly like a hard-coded 0.0751 is.
Antworten (1)
Siehe auch
Kategorien
Mehr zu Structures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!