How to save data of each folders in cell array?

1 Ansicht (letzte 30 Tage)
sam moor
sam moor am 22 Okt. 2018
Beantwortet: sam moor am 22 Okt. 2018
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?

Antworten (2)

sam moor
sam moor am 22 Okt. 2018
I did that..but when it goes for another folder. the data store is replaced for 2nd folder
  2 Kommentare
sam moor
sam moor am 22 Okt. 2018
(1,6)
sam moor
sam moor am 22 Okt. 2018
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.

Melden Sie sich an, um zu kommentieren.


sam moor
sam moor am 22 Okt. 2018
here is my code

Kategorien

Mehr zu File Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by