Cody

Solution 160010

Submitted on 9 Nov 2012
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% n=5; [m_out{1:n}] = use_varargout(n) Pass=true; for i=1:n Pass=Pass && isequal(m_out{i},magic(i)); end m_out{n} assert(isequal(Pass,1))
Error: Too many output arguments.
2   Fail
%% n=7; [m_out{1:n}] = use_varargout(n) Pass=true; for i=1:n Pass=Pass && isequal(m_out{i},magic(i)); end m_out{n} assert(isequal(Pass,1))
Error: Too many output arguments.