Finding Values in a file
Afficher commentaires plus anciens
Hello, I have a file named as " model_data".

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 commentaires
krishna teja
le 23 Déc 2019
this seems like a homework question
instead, you could try out some code and ask specific places whre you find errors...
Chris Dan
le 24 Déc 2019
Walter Roberson
le 24 Déc 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.
Réponses (1)
Chris Dan
le 24 Déc 2019
0 votes
Catégories
En savoir plus sur Workspace Variables and MAT Files dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!