I have a function that calls a sub-function within the same file: in main.m:
function main() ... [a,b,c,d,e,f,g,h]=TimeCalculations(x1,x2,x3,x4,x5,x6); ...endfunction [a,b,c,d,e,f,g,h]=TimeCalculations(x1,x2,x3,x4,x5,x6) ... %calculations for a,b,c,d,e,f,g,hend
When I run main(), the program errors on the call to TimeCalculations(). The error output is: too many output arguments. However, when I put a breakpoint at this line and then copy the line directly into the command window, I do not receive and error. Has anyone run into a similar scenario and how did they fix it?
Best Answer