フィルターのクリア

How to load files in order

2 ビュー (過去 30 日間)
minsick
minsick 2020 年 4 月 8 日
編集済み: Stephen23 2020 年 4 月 8 日
I am looking for How to load files in order
please find attached file
If i = 1:5
data = importdata('RR.data.(i)');
That has error

採用された回答

Stephen23
Stephen23 2020 年 4 月 8 日
編集済み: Stephen23 2020 年 4 月 8 日
Use either of the methods shown in the documentation:
For example:
N = 2; % number of files
C = cell(1,N);
for k = 1:N
F = sprintf('RR.data.%u',k);
C{k} = dlmread(F);
end
M = vertcat(C{:});
Giving:
>> M
M =
0 850 0
0 850 0

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFile Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by