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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Hui Zhao
el 10 de Nov. de 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 comentarios
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!