0

I have been trying to run a piece of code written in Matlab that contains the following:

function list = shellsort(list);
interval = floor(length(list)/3);

I get the following error message:

Not enough input arguments. 
Error in shellsort (line 3)
interval = floor(length(list)/3);

Any ideas on how to debug it?

  • 4
    I’m voting to close this question because it does not appear to be about Apple hardware or software within the scope defined in the help centre. –  Nov 03 '20 at 18:51
  • Is there a StackExchange forum specifically on Matlab? – Federico Gremmo Nov 03 '20 at 19:02
  • Theoretically this is on topic if you edit as you use matlab on iPad or on Mac. Hard for me to guess which engineering or math site might have this on scope as well. – bmike Nov 03 '20 at 19:10
  • My mathlab is a bit rusty but what are you trying to do here? Define a function? – nohillside Nov 03 '20 at 19:54
  • 1
    Not enough content to know why you get not enough input arguments, since there's no function call here that should have too few arguments. – Ian Nov 09 '20 at 15:52

0 Answers0