??? Too many input arguments Error

3 views (last 30 days)
Hamid on 3 Dec 2014
Edited: per isakson on 4 Dec 2014
Hi everybody
all of the inputs are defined, please help.
Hamid on 3 Dec 2014
thank you for helping me.
I attached bintranslate function.

Sign in to comment.

Answers (2)

Thorsten on 3 Dec 2014
Please double check that your function is called with 17 inputs.
Such a large number of inputs is error prone. Try do define the function with fewer arguments of higher dimension, e.g. span = [xspan, yspan, zspan];

per isakson
per isakson on 3 Dec 2014
Edited: per isakson on 4 Dec 2014
There are two errors in your call of the function
  • The function is defined with two output arguments, [Coord,Ep]. The call contains three [Coord,Edof,Ep]
  • The function has 16 input arguments. The call has 17. The difference is Dof
This call passes at least the check of the numbers of inputs and outputs
>> [Coord,Ep]=bintranslate(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16);
Warning: This concatenation operation includes an empty array with an
incorrect number of columns. ...
InputPreprocessor shows how I handle functions with many input arguments.
  1 Comment
Andrew Reibold
Andrew Reibold on 3 Dec 2014
Sometimes I wonder what would happen if people read the error messages

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!