How to load files in order

조회 수: 3 (최근 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 CenterFile Exchange에서 Octave에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by