Hey guys,
let us assume the following function:
function [out1,out2,out3]=test(j,k)out1= nargin;out2 = j-k;if out2 == 10 out3 = 5;endend
The function call [val1,val2,val3] = test(10,11) returns an error because c is obviously undefined. How do I make this code run so that out3 is returned when it exists?
Thanks for your help!
Best Answer