필터 지우기
필터 지우기

Saving Loop Data to Separate Variables

조회 수: 2 (최근 30일)
Christopher Hall
Christopher Hall 2015년 2월 5일
편집: Christopher Hall 2015년 2월 5일
Hi,
I am trying to take data from a structure cell array and put it into separate variable files.
The Cell Array 'TD' looks like this:
Field ___ Data
1 ___ 512x2 double
2 ___512x2 double
3 ___512x2 double
eg.
for i = 1:length(files)
Data(i) = TD{i};
end
The value of i corresponds to both the field in the array and the name of the file.
Also I assume that by using TD{i} I am selecting each field within the struct array?
I have looked around but can't seem to get this concept to click so would appreciate a push in the right direction.
Many Thanks,
Chris

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by