Cody

Solution 535779

Submitted on 26 Nov 2014 by James
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   Pass
%% n = 1; S1 = rand(n); f=@(x)S1*x; assert(isequal(S_param(f, n),S1))

ans = 0.1597

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

ans = 0.0532 0.7273 0.8471 0.9680 0.7086 0.9543 0.7209 0.2872 0.9330 0.1820 0.9118 0.3082 0.2318 0.7690 0.1170 0.8743