how to save the varname contains different characters (attached) as a cell array format using GUI in matlab ?
Show older comments
Below is the code displaying the variables inside the loop. How to save these displayed variables as a cell format using GUI in matlab?
for varid=0:nvars-1
[varname, xtype(i,:), dimids, numatts(i,:)] = netcdf.inqVar(ncid(i,:),varid);
disp(['--------------------< ' varname ' >---------------------'])
end
4 Comments
Image Analyst
on 7 Apr 2016
What would you like the GUI to do? Do you want a push button to ask the user for a folder and file name where he/she wants to save the variables?
Manoj
on 10 Apr 2016
Geoff Hayes
on 10 Apr 2016
Manoj - please clarify what you mean as cell format. Do you wish to save the data to a mat file or a text file or something else? Please describe the format of the file.
Manoj
on 11 Apr 2016
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT Files 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!