I would like to convert array of S-parameters to Y-parameters. but facing an error as " S_params must be NbyNbyM matrix". Can I get through this error?
9 views (last 30 days)
Show older comments
I can convert a single S-parameter values to Y-parameter values. But when the input is an array of S-parameters, I couldn't convert them and the error is as follow ------------------------------------------------ ??? Error using ==> CheckNetworkData at 53 S_PARAMS must be a complex NxNxM array.
Error in ==> s2y at 18 [m, s_params] = CheckNetworkData(s_params, [], 'S_PARAMS');
Error in ==> conversion at 11 y_params = s2y(s_params(1:201,1:2), z0);
0 Comments
Answers (1)
Hui Zhao
on 10 Nov 2017
S11 = [1,1,1];
S12 = [1,1,1];
S21 = [1,1,1];
S22 = [1,1,1];
s_params(1,1,:) = S11;
s_params(1,2,:) = S12;
s_params(2,1,:) = S21;
s_params(2,2,:) = S21;
y_params = s2y(s_params, 50);
try this code. Check the error info, "S_PARAMS must be a complex NxNxM array". N means N port, for two port network, N should be 2, which means that your S_PARAMS must be a three dimension system, and the size should be 2*2*length.
0 Comments
See Also
Categories
Find more on Resizing and Reshaping Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!