Define the deafult path for uisave

8 ビュー (過去 30 日間)
Daniele Favot
Daniele Favot 2013 年 7 月 24 日
Hi everybody,
I'm using the uisave command to store some data, but I can't define the default path that uisave command will use. Is there a way to do it?
Thanks in advance, Daniele

採用された回答

Daniele Favot
Daniele Favot 2013 年 7 月 25 日
編集済み: Daniele Favot 2013 年 7 月 25 日
Setting the current folder with the folder that I want solved my problem:
FileName='Deafult_Monitored_Points.mat'
L1=length(FileName);
location=which(FileName);
L2=length(location);
folder=location(1:[L2-L1-1]);
cd(folder);
uisave({'Data','RowNames','ID_FixedPoints','Color1','Color2','Color3','Color4'},FileName);

その他の回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 7 月 24 日
f='E:\matlab' % For example your default folder
uisave('A',f)
  1 件のコメント
Daniele Favot
Daniele Favot 2013 年 7 月 24 日
編集済み: Azzi Abdelmalek 2013 年 7 月 24 日
This is my actual command line:
uisave({'Data','RowNames','ID_FixedPoints','Color1','Color2','Color3','Color4'},'Default_Monitored_Points');
where 'Default_Monitored_Points' is the default file name.
I'd like to use this:
location=which('Default_Monitored_Points.mat')
and use this variable to set the default path to be sure to overwrite the file that was stored before, but for example:
uisave({'Data','RowNames','ID_FixedPoints','Color1','Color2','Color3','Color4'},'Default_Monitored_Points',location);
doesn't work.

サインインしてコメントする。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by