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?

 採用された回答

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

1 件のコメント

Sina S
Sina S 2019 年 3 月 24 日
Many Many Thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeStress 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