Can any body help me to creat .mat file in current folder ?

2 views (last 30 days)
When I call one function which is obtained by me, I want to create it in current folder. I am using 'save ' function but it has problem that, it is memorised not only my neural network function but also all of function variable . Is there any choose out of 'save' function to create .mat file ?

Sign in to comment.

Accepted Answer

Nitin on 10 Mar 2014
I suppose you only want to save a specific variable instead of everything:
If you would like to save only variable, a:
a = rand(1,10)
If you would like to save all variables:
filename = 'save_all.mat';
  1 Comment
Onur PEKER on 12 Mar 2014
thank you so much . save('a_save.mat','a') this function is working.

Sign in to comment.

More Answers (0)


Find more on Deep Learning Toolbox 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!