The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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

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)
subout = subfunction(subin);
end % I tried shifting this 'end' to location * also

function subout = subfunction(subin)
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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.