- b sometimes returned from myfn and sometimes not returned, so how to write the function that may retrun b
function [a,b] = myfn(x,y)aif(x=y)bend
- also how to call myfn from the main file if b is not returned
[a,b]=myfn(x,y)
matlab function
function [a,b] = myfn(x,y)aif(x=y)bend
[a,b]=myfn(x,y)
Best Answer