Cody

Solution 535781

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.1038

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

ans = 0.2882 0.7787 0.9049 0.5671 0.5852 0.5914 0.1250 0.1500 0.1933 0.4533 0.0470 0.1268 0.1232 0.8393 0.5301 0.2168

Suggested Problems

More from this Author3