-->

Tuesday, January 14, 2014

all you ned to know about matlab from command line


1. create your function

function download(file_input)
path_root = './';
mkdir(path_root);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% INPUT 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%% file  input
if length(file_input)<1 font="">
    exit(1);
end
.....

2. save it in a file called with the same name of the function

download.m

3. run matlab with the following command

$ matlab -nodesktop -nosplash  -r  "download('')"

No comments:

Post a Comment