how i can store array of string for every loop
古いコメントを表示
suppose i have a file 'M1.csv','M2.csv','M3.csv','M4.csv', how can i store it in the array and call them on the basis of requirement.
2 件のコメント
Sun Heat
2019 年 6 月 4 日
Use a cell array:
A = {'M1.csv','M2.csv','M3.csv','M4.csv'};
A{1}
A{2}
etc.
Note that [] are a concatenation operator, so this
[ 'M1.csv','M2.csv','M3.csv','M4.csv']
is simply equivalent to this:
'M1.csvM2.csvM3.csvM4.csv'
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!