Finding Values in a file
Mostrar comentarios más antiguos
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 comentarios
krishna teja
el 23 de Dic. de 2019
this seems like a homework question
instead, you could try out some code and ask specific places whre you find errors...
Chris Dan
el 24 de Dic. de 2019
Walter Roberson
el 24 de Dic. de 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.
Respuestas (1)
Chris Dan
el 24 de Dic. de 2019
0 votos
Categorías
Más información sobre Workspace Variables and MAT Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!