필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Help ! I need to import 3 datafiles from 1 file !

조회 수: 2 (최근 30일)
Þorfinnur Karl Magnússon
Þorfinnur Karl Magnússon 2017년 10월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
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
Walter Roberson
Walter Roberson 2017년 10월 31일
That code looks plausible. It could be written more cleanly, but I do not see anything wrong with it.
Jordy Jose
Jordy Jose 2017년 11월 13일
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?

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by