Answers for "save mat matlab"

1

save mat file script in matlab directory

%get the directory of your input files:
pathname = fileparts('/input/file');
%use that when you save
matfile = fullfile(pathname, 'output.mat');
figfile = fullfile(pathname, 'output.fig');
save(matfile, ...');
saveas(figfile, ...');
Posted by: Guest on July-02-2020

Browse Popular Code Answers by Language