Cody

Solution 105347

Submitted on 2 Jul 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 = 1; S1 = rand(n); f=@(x)S1*x; assert(isequal(S_param(f, n),S1))

Error: Assertion failed.

2   Pass
%% n = 4; S1 = rand(n); f=@(x)S1*x; assert(isequal(S_param(f, n),S1))

S = 0.8147 0.6324 0.9575 0.9572 0.9058 0.0975 0.9649 0.4854 0.1270 0.2785 0.1576 0.8003 0.9134 0.5469 0.9706 0.1419

Suggested Problems

More from this Author3