Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: error in calling subfunction
Replies: 1   Last Post: Mar 7, 2013 10:29 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
subramanya

Posts: 23
Registered: 4/28/12
error in calling subfunction
Posted: Mar 6, 2013 11:55 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi,
I am trying to call a subfunction from a mainfunction. The script is saved as mainfunction.m and its location has been selected as current folder. Syntax is as follows

function out = mainfunction(in)
statements
subout = subfunction(subin);
end % I tried shifting this 'end' to location * also

function subout = subfunction(subin)
statements
end
*(end)
and the error is
Undefined function 'subfunction' for input arguments of type 'uint8'

thanks in advance



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.