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);
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!