Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Help ! I need to import 3 datafiles from 1 file !
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Þorfinnur Karl Magnússon
el 31 de Oct. de 2017
Cerrada: MATLAB Answer Bot
el 20 de Ag. de 2021
Help ! I need to import 3 datafiles from 1 file and at this point I have tried pretty much anything ! this is what I came with but it does not work
close all;
clear all;
clc;
p = pwd;
DirFolder = dir(strcat(p,'/Data/subject*'))
q = length(DirFolder)
for i = 1:q ;
Dirfolder2 = dir(strcat(p,'/Data/',DirFolder(i).name,'/*txt'))
for j= 1:6;
file = strcat(p,'/Data/',DirFolder(i).name,'/',Dirfolder2(j).name)
a = importdata(file)
data{i,j}= a.data
end
end
2 comentarios
Walter Roberson
el 31 de Oct. de 2017
That code looks plausible. It could be written more cleanly, but I do not see anything wrong with it.
Jordy Jose
el 13 de Nov. de 2017
When you execute the code are you getting any error/warning or is it just not working the way you intended it to ? Can you please elaborate little more on the real issue you are facing?
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!