필터 지우기
필터 지우기

how to read file

조회 수: 3 (최근 30일)
NGR MNFD
NGR MNFD 2023년 11월 13일
댓글: Mathieu NOE 2023년 11월 13일
I have a data in the form of a picture below, in each of the six files with the extension .csv, I get the error as below. What Matlab code do you suggest?
Unable to find file or directory 'human1_antalgic1_SkeletonData1'.
c = 'C:\Users\HAMSHARI\Documents\MATLAB\movementdisorder';
files = dir(fullfile(c,'*','*Skeleton*.csv'));
n = numel(files);
DATA = cell(n,1);
for k=1:n
str = fullfile(files(k).folder, files(k).name);
DATA{k} = readmatrix(str);
end
for i= 1:10
for j = 1:20
str = sprintf('human%d_normal%d_SkeletonData%d', [i j]);
data = readmatrix(str);
end
end
  댓글 수: 1
Mathieu NOE
Mathieu NOE 2023년 11월 13일
seems to me (according to the pic) your path should end with \data whereas in your code it ends with \movementdisorder
therefore the error msg

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Downloads에 대해 자세히 알아보기

태그

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by