Cody

Solution 461902

Submitted on 25 Jun 2014 by rifat
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.339161194189291

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

ans = 0.741900385054026 0.806290511444400 0.802633890273619 0.411917785582055 0.129633117487403 0.883671738472815 0.439608513919921 0.633018626282207 0.620024804750142 0.838256465164060 0.091946888344763 0.973588856223592 0.211006604661839 0.576444452701645 0.931727626446683 0.978919392481553

Suggested Problems

More from this Author3