-1

I am trying out a project https://github.com/janstenum/GaitAnalysis-PoseEstimation and when I run the command correctLegID_openpose.m as said in the documentation, I get this error

 Not enough input arguments.

Error in correctLegID_openpose (line 3)
file = sprintf('%s%s',output_name,'_openpose.mat');

Error in run (line 91)
evalin('caller', strcat(script, ';'));
 

I tried running the command normally by using

run("correctLegID_openpose.m")

Benjamin W.
  • 46,058
  • 19
  • 106
  • 116
  • `dbstop if error` is your friend. You'll stop where the error happens, **in context**, so you can look at the variables referenced on the failing line. – Ben Voigt Jan 30 '23 at 19:21

1 Answers1

1

run() is for scripts, not for functions that take arguments. If correctLegID_openpose.m is on your Matlab search path, you can just call it directly and supply the missing input argument:

output_name = 'filename';
correctLegID_openpose(output_name)
FragileX
  • 626
  • 1
  • 8