how to read file

1 Ansicht (letzte 30 Tage)
NGR MNFD
NGR MNFD am 13 Nov. 2023
Kommentiert: Mathieu NOE am 13 Nov. 2023
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 Kommentar
Mathieu NOE
Mathieu NOE am 13 Nov. 2023
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by