FDS and Matlab: Reading and writing an array in a file text
Mostrar comentarios más antiguos
Good morning.
I have a problem with one script I am creating. The problem comes once I need to rewrite the sentence that is in my text file in order to change the number 330 with another number:
&RAMP ID = 'rampM', T=330, F = 1/
The main problem is that when I rewrite all the sentence the apostrophe tells matlab that the end of the sentences is after the equals and matlab doesn't take all the line from the text file.
I would like to know how to only change the 330 in order to keep the rest of the sentece the same.
Best regards.
Maria.
2 comentarios
Guillaume
el 28 de En. de 2020
The answer to your question depends entirely on how you are currently reading and writing the file. We probably need to see some code.
"matlab doesn't take all the line from the text file.". Low level IO functions read whatever you tell them to read, including a whole line if you want, but it's unclear if you're using low-level functions.
María Plata
el 28 de En. de 2020
Respuesta aceptada
Más respuestas (1)
María Plata
el 29 de En. de 2020
0 votos
Categorías
Más información sobre Large Files and Big Data 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!