save output for specific folder

조회 수: 67 (최근 30일)
OriAlpha
OriAlpha 2019년 2월 14일
댓글: OriAlpha 2019년 2월 14일
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에서 File Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by