Exercise 15 Solution
%{
Given the function header
[x, y] = calcem(a,b,c)
both of those would be valid.
Because they both have the correct number of required inputs.
As for outputs, the first one has two output variables, which matches the function header.
The second one has only one output variable, but in that case Matlab's
default behavior is that it will return only the first variable
(x in the func header) and discard the rest.
%}
Given the function header
[x, y] = calcem(a,b,c)
both of those would be valid.
Because they both have the correct number of required inputs.
As for outputs, the first one has two output variables, which matches the function header.
The second one has only one output variable, but in that case Matlab's
default behavior is that it will return only the first variable
(x in the func header) and discard the rest.
%}