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 ビュー (過去 30 日間)
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);

回答 (1 件)

Hui Zhao
Hui Zhao 2017 年 11 月 10 日
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.

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by