I created a csv file in which i created three column file, pixels and usage i want to create 3 folders.

1 view (last 30 days)
file column has numbers 0,1 and 2 i want to create three folders and want to name them 0 ,1 and 2, kindly help me.

Accepted Answer

KL
KL on 2 Nov 2017
Edited: KL on 2 Nov 2017
mkdir creates a new folder
usage example,
for k=1:yourMax
%your things
[status, msg, msgID] = mkdir(['newFolder_' num2str(k)])
%do your thing
end
  2 Comments
saeeda saher
saeeda saher on 2 Nov 2017
the folders have been created and i imported the csv file which contains the following data rows and columns: file value 0 1 2 3 4 5 6 7 8 9 0 1 11 12 13 14 15 16 17 18 19 20 2 21 22 23 24 25 26 27 28 29 30
i want to save the column value data in to respective folders. the first raw 0's values into the 0 folder the second raw 1's values into the 1 folder as text files. kindly help me

Sign in to comment.

More Answers (0)

Categories

Find more on Data Import and Export in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!