I used the 'Download files from your DropBox API folder using MATLAB' code in thingspeak's matlab analysis, to get a training model.mat file from dropbox, but it just keeps showing not enough input arguments. how do I solve this please? I checked and it went wrong during "narginchk(2,3)" but I just am not sure how and what to do function downloadFromDropbox(dropboxAccessToken,fileNames,varargin) dropboxAccessToken='xxx'; %xxx to hide the actual token fileNames='TrainingModel.mat'; % Check to input arguments narginchk(2,3); % If no file specified, pop up the dialog for the user to select one if isequal(nargin,2) %Set default downloadPath to workspace location downloadPath = pwd; elseif isequal(nargin,3) % If downloadPath is provided, check if the given path exists if ~exist(varargin{1},'dir') throw(MException('downloadFromDropbox:pathNotFound','Download path does not exist.')); else downloadPath = varargin{1}; end end