Here is the batch file code from where i am calling the mat file,
IF %DO_FILECOPY%==1 (
@echo Calling matlab @%MATLAB_PATH% -noFigureWindows -nodesktop -nosplash -softwareopengl -wait -sd "%PLOT_SCRIPT_PATH%" -r FileCopy('"%FILE_PATH%"','"%DESTINATION%"');
)
The FileCopy file takes these FILE_PATH and DESTINATION strings as arguments. I have set DO_FILECOPY to 1.
function FileCopy(varargin)if nargin > 0 searchPath = varargin{1}; destination = varargin{2};endsearchPattern = '.mat$';bRecursiveSearch = 1;...
End of code.
Error is as follows
Best Answer