save output for specific folder

60 次查看(过去 30 天)
i have to save file
i use
save (uigetdir ("F: \"), "d")
but file is not saving
what can i do

采纳的回答

Geoff Hayes
Geoff Hayes 2019-2-14
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");

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Filename Construction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by