save output for specific folder

57 views (last 30 days)
OriAlpha
OriAlpha on 14 Feb 2019
Commented: OriAlpha on 14 Feb 2019
i have to save file
i use
save (uigetdir ("F: \"), "d")
but file is not saving
what can i do

Accepted Answer

Geoff Hayes
Geoff Hayes on 14 Feb 2019
Suhas - uigetdir returns a directory only so you need to specify a file name too. Perhaps something like
folderToSaveFileTo = uigetdir ("F: \");
filename = "someName.mat";
save (fullfile(folderToSaveFileTo, filename), "d");

More Answers (0)

Categories

Find more on Filename Construction 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!