How to save data of each folders in cell array?

조회 수: 1 (최근 30일)
sam moor
sam moor 2018년 10월 22일
답변: sam moor 2018년 10월 22일
I have four folders r1, r2, r3 and r4. I used for loop for each folders and read files and store data using if statement inside the for loop. But when script for r2 folder, it overwrites the first stored data in a cell array. How do I create different cell array for each folders so that I can store data of each folder in each cell array?

답변 (2개)

sam moor
sam moor 2018년 10월 22일
I did that..but when it goes for another folder. the data store is replaced for 2nd folder
  댓글 수: 2
sam moor
sam moor 2018년 10월 22일
(1,6)
sam moor
sam moor 2018년 10월 22일
output = cell(subfold_idx,6); this is what i used to define cell? each subfold_idx is in for loop so in 2nd loop the data overwrites. I need to defined cell for each folder.

댓글을 달려면 로그인하십시오.


sam moor
sam moor 2018년 10월 22일
here is my code

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by