why am I getting this error ? Any help please
Afficher commentaires plus anciens
for i = 1:length(file_list)
filename = file_list(i);
data_in = readtable([path_n filename]);
Error using readtable
"filename" must be a string scalar or
character vector.
Error in READ_MULTI_FILES (line 10)
data_in = readtable([path_n filename]);
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 9 Août 2022
filename = file_list{i};
data_in = readtable( fullfile(path_n, filename) );
5 commentaires
Stephen Tete
le 9 Août 2022
Stephen Tete
le 9 Août 2022
Walter Roberson
le 9 Août 2022
[file_list, path_n] = uigetfile('*.Cmn','Grab the files you want yo process','Multiselect', 'on');
if isnumeric(file_list)
return; %user cancel
end
file_list = cellstr(file_list);
for i = 1:length(file_list)
filename = file_list{i};
data_in = readtable(fullfile(path_n, filename));
subject_id(1,i) = string(filename(1:end-4));
VTEC = data(:,9);
STEC = data(:,8);
time = hours(:,2);
[H,M,S] = hms(time);
scatter(H,VTEC, 'k', H,STEC,'o');
hold on
end
leg = reshape(subject_id + ["_V"; "_S"], 1, []);
legend(leg)
Stephen Tete
le 10 Août 2022
Modifié(e) : Walter Roberson
le 10 Août 2022
Catégories
En savoir plus sur Timetables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!