how can make folder out put to display my result?

1 view (last 30 days)
how can make folder out put to display my result? or how and what meaning this loop pleas
if ~exist(output_folder,'dir')
mkdir(output_folder);
end

Accepted Answer

Image Analyst
Image Analyst on 29 Aug 2014
That should do it. It checks if a folder by than name exists already . If it does not (~ means not ) then it calls mkdir() to create the folder.
  2 Comments
mary noor
mary noor on 30 Aug 2014
thank you whene i read in help producte of matlap this requared connect with net cwhy requred to net. and i use this without connect to net.i have function function compute(xs,ys,zs,data3d,mode,output_folder) give my parameter as: function compute([1 64],[1 64],[1 64],data3d,1,output_folder) not use give me this error( Undefined function or variable 'output_folder')
Image Analyst
Image Analyst on 30 Aug 2014
Watch this completely http://blogs.mathworks.com/videos/2012/07/03/debugging-in-matlab/ Then, using the skills you learned in it, tell me what the value of output_folder is when you call compute(). Chances are you have not assigned it any value at all.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!