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?

 채택된 답변

Stephan
Stephan 2019년 3월 24일
편집: Stephan 2019년 3월 24일

1 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Stress and Strain에 대해 자세히 알아보기

질문:

2019년 3월 24일

댓글:

2019년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by