Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 44ef3744 authored by DIB Elian's avatar DIB Elian
Browse files

Infer folder from filename

parent 637de299
Branches
No related tags found
No related merge requests found
function m = getMat(folder,name,isWritable) function m = getMat(filename,isWritable)
%GET_MAT Summary of this function goes here %GET_MAT Summary of this function goes here
% Detailed explanation goes here % Detailed explanation goes here
folder = fileparts(filename);
if isWritable && ~exist(folder,'dir') if isWritable && ~exist(folder,'dir')
mkdir(folder); mkdir(folder);
end end
namemat = fullfile(folder,[name,'.mat']); namemat = [filename,'.mat'];
m = matfile(namemat,'Writable',isWritable); m = matfile(namemat,'Writable',isWritable);
end end
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment