From: aamir zeb on 25 Jun 2010 11:19 Hi there iam doing a project in matlab.ihave to call a function within a program when i run the whole programe...and when it reaches the function which is in the program it says "error using the abc function too many output arguments".kindly help me out. Regards AAMIR
From: us on 25 Jun 2010 11:34 "aamir zeb" <addikted(a)gmail.com> wrote in message <i02hd8$l7f$1(a)fred.mathworks.com>... > Hi there iam doing a project in matlab.ihave to call a function within a program when i run the whole programe...and when it reaches the function which is in the program it says "error using the abc function too many output arguments".kindly help me out. > > Regards > AAMIR well... the error message is ...sort of... self-explanatory... figure out, how many output args your function allows for, eg, nargout('your_function') % or use this FEX utility for more in-depth information... http://www.mathworks.com/matlabcentral/fileexchange/15924 us
From: someone on 25 Jun 2010 11:34 "aamir zeb" <addikted(a)gmail.com> wrote in message <i02hd8$l7f$1(a)fred.mathworks.com>... > Hi there iam doing a project in matlab.ihave to call a function within a program when i run the whole programe...and when it reaches the function which is in the program it says "error using the abc function too many output arguments".kindly help me out. > > Regards > AAMIR Well, without anymore info, my advice would be to call the abc function with either fewer or more output arguments. Can you be more specific and give an example of how you call abc and what the abc function is?
From: Andy on 25 Jun 2010 11:35 "aamir zeb" <addikted(a)gmail.com> wrote in message <i02hd8$l7f$1(a)fred.mathworks.com>... > Hi there iam doing a project in matlab.ihave to call a function within a program when i run the whole programe...and when it reaches the function which is in the program it says "error using the abc function too many output arguments".kindly help me out. > > Regards > AAMIR Could you provide some code for the abc function and your call to it from the main function?
From: Frédéric Bergeron on 25 Jun 2010 11:41 "aamir zeb" <addikted(a)gmail.com> wrote in message <i02hd8$l7f$1(a)fred.mathworks.com>... > Hi there iam doing a project in matlab.ihave to call a function within a program when i run the whole programe...and when it reaches the function which is in the program it says "error using the abc function too many output arguments".kindly help me out. > > Regards > AAMIR Hey, help nargout help varargout help error Something like this should work function [varargout]=abc(inputs) if nargout>x error('msg'); end end
|
Next
|
Last
Pages: 1 2 Prev: draw an arc using just five points Next: Simple hack to get $600 to your home |