Info

This question is closed. Reopen it to edit or answer.

Not Enough Input Arguments

1 view (last 30 days)
Andrea Gómez
Andrea Gómez on 21 Jan 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
Hello, when I try to run the following equation the program throws the message of: Not enough input arguments.
Xmin=min(XY(:,1:1));
XY is a file that contains the coordinates of X and Y. I have modified it in different ways but I can not find the error so I went back to the original problem.
Beforehand thank you very much,
Andrea Gómez
  1 Comment
Adam
Adam on 21 Jan 2019
What do you mean by 'XY is a file'? And where is XY and where/how are you calling that code?
XY needs to be a 3d array within the workspace in which you are calling that code.
If XY is a file then you would need to read the file into an array first. Your error would suggest you are calling this code from inside a function where XY is supposed to be one of the input arguments, but you are not passing it in.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!