save output for specific folder

51 Ansichten (letzte 30 Tage)
OriAlpha
OriAlpha am 14 Feb. 2019
Kommentiert: OriAlpha am 14 Feb. 2019
i have to save file
i use
save (uigetdir ("F: \"), "d")
but file is not saving
what can i do

Akzeptierte Antwort

Geoff Hayes
Geoff Hayes am 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");

Weitere Antworten (0)

Kategorien

Mehr zu Filename Construction finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by