General question, temp, character

I'm studying a MATLAB code.
There are two lines which I cannot understand.
for N=1:2
temp=['StressSolution' int2str(N) '.txt']
F=fopen(temp,'r')
end
Could anyone kindly help me with it?

 Respuesta aceptada

Stephan
Stephan el 24 de Mzo. de 2019
Editada: Stephan el 24 de Mzo. de 2019
Hi,
the first line creates filenames depending from N as a string and saves it in temp:
temp = StressSolution1.txt
temp = StressSolution2.txt
The second line opens the specified files for reading.
Best regards
Stephan

Más respuestas (0)

Categorías

Más información sobre Stress and Strain en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Mzo. de 2019

Comentada:

el 24 de Mzo. de 2019

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by