how do i solve Error using CheckNetworkData (line 39) H_PARAMS must be numeric. Error in h2s (line 17) m = CheckNetworkData(h_params, 2, 'H_PARAMS');
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
grace lim
el 18 de En. de 2022
Respondida: Harikrishnan Balachandran Nair
el 25 de En. de 2022
how do i solve this error?
when using h2s function
i tried uing:syms R1 R2 Av h11 h12 h21 h22
h11 = 1;
h12=10;
h21=1;
h22=2;
h_params = [h11,h12; h21,h22];
s_params = h2s(h_params)
however this is te error i received,
please help thank you in advance
H_PARAMS must be numeric.
m = CheckNetworkData(h_params, 2, 'H_PARAMS');
0 comentarios
Respuestas (1)
Harikrishnan Balachandran Nair
el 25 de En. de 2022
Hi grace,
The 'h2s' function expects the 'H_PARAMS' to be of numeric Type. The error that you have mentioned in the question arises when the 'H_PARAMS' passed as arguments are not of numeric type.
You can use the 'isnumeric' in Matlab function to see if the provided 'H_PARAMS' are of numeric type, and make changes accordingly.
Hope this helps!
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!