MATLAB: Define the deafult path for uisave

pathuisave

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

Best Answer

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);