MATLAB: Second output argument as input argument

argumentsinputMATLABoutput

Is it possible to combine the two lines:
[~,b] = myfunction(x);
c = myfunction2(b);
Something like: c = myfunction2(myfunction(x){2}) ??

Best Answer

There is no MATLAB syntax or built-in function that supports what you want to do, unfortunately.