Cody

Problem 368. Find S-parameters of the circuit

Solution 3357488

Submitted on 24 Oct 2020 by Nikolaos Nikolaou
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))

S = 0.6004

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

S = 0.2928 0.9013 0.1788 0.3824 0.4208 0.8148 0.8310 0.2716 0.1579 0.1162 0.3727 0.6824 0.2321 0.1845 0.2891 0.8947

Suggested Problems

More from this Author3

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!