Massimobread in MATLAB Answers
Letzte Aktivitätam 9 Jun. 2022

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

Info zu ThingSpeak

The community for students, researchers, and engineers looking to use MATLAB, Simulink, and ThingSpeak for Internet of Things applications. You can find the latest ThingSpeak news, tutorials to jump-start your next IoT project, and a forum to engage in a discussion on your latest cloud-based project. You can see answers to problems other users have solved and share how you solved a problem.