function [out1, out2, out3] = three_outarg(in1, in2, in3)
% three_outarg Demo function with three output arguments.
% 
% Values must be assigned to all of 'out1', 'out2' and 'out3'
% before the function returns.
% 
% Aslo note that the second and third output arguments of this function are
% assigned a vector and a matrix respectively.
   out1 = in1;
   out2 = zeros(1,in2);
   out3 = eye(in3);
end
