Cody

Solution 595452

Submitted on 12 Mar 2015 by goc3
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.7555

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

ans = 0.2528 0.0102 0.6426 0.0385 0.9829 0.9514 0.9850 0.8032 0.6182 0.4133 0.6403 0.2909 0.1506 0.1092 0.3348 0.0919