Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR MATLAB

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, ...');
 
PREVIOUS NEXT
Tagged: #save #mat #file #script #matlab #directory
ADD COMMENT
Topic
Name
3+5 =