sigstrength error with Satellite Toolbox example code

7 visualizaciones (últimos 30 días)
Lieselotte Heinrich
Lieselotte Heinrich el 16 de Abr. de 2023
Editada: Gyan Vaibhav el 22 de Dic. de 2023
I'm having a problem with the tutorial "Interference from Satellite Constellation on Communications Link". https://www.mathworks.com/help/satcom/ug/interference-from-satellite-constellation-on-comms-link.html
Specifically, the function sigstrength(). It does not like the input arguments given.
% Calculate the power at receiver input corresponding to the downlink from
% the MEO satellite.
[~,downlinkPowerRxInput] = sigstrength(downlink); % In dBW
% Calculate the interference power at receiver input corresponding to each
% LEO satellite.
[~,interferencePowerRxInput] = sigstrength(lnkInterference); % In dBW
The error to these calls of sigstrength() is "Check for incorrect argument data type or missing argument in call to function 'sigstrength'." - the same error for both. For context, "downlink" and "lnkInterference" are of type "Link".
When I tried sigstrength() on its own to get more details about the error, it returned "Unrecognized function or variable 'sigstrength'." I checked the documentation, and sigstrength() is defined in both the Antenna and Communications Toolboxes, both of which I have. In the documentation, it is defined as "ss = sigstrength(rx,tx)" so I tried the following:
% [~,downlinkPowerRxInput] = sigstrength(txMEOSat,rxGs); % In dBW
% [~,downlinkPowerRxInput] = sigstrength(rxGs,txMEOSat); % In dBW
It did not work. Perhaps because both versions of the function require inputs of type "txsite" and "rxsite", rather than "transmitter" and "receiver".
Could anyone help me resolve this issue? Do you have ideas for what to try next to get this example code working?
  4 comentarios
Walter Roberson
Walter Roberson el 16 de Abr. de 2023
Which MATLAB version are you using? The function was added in r2022b
https://www.mathworks.com/help/satcom/ref/satcom.satellitescenario.link.sigstrength.html
LI
LI el 5 de Jun. de 2023
I face the same problem. It also happens to the function link and ebn0 when I want to change the propagation model.

Iniciar sesión para comentar.

Respuestas (1)

Gyan Vaibhav
Gyan Vaibhav el 22 de Dic. de 2023
Editada: Gyan Vaibhav el 22 de Dic. de 2023
Hi Lieselotte,
I understand that you are trying to follow the tutorial "Interference from Satellite Constellation on Communications Link". However, you are facing an error with the section where “sigstrength” function is used. It throws an error regarding improper input to the function.
I tried following the same example and I was not able to reproduce the error. The example runs fine, and as expected.
Here are a few tips on how to overcome this problem:
  • Update to the latest release of MATLAB available to you, as the function operates without issue in R2023b. Given that the "sigstrength" function was introduced in R2022b, earlier versions may be prone to errors.
  • Opening the example directly within MATLAB could be beneficial in determining whether the issue lies with the tutorial or if an unintended error has been introduced. The following command can be utilized to open the example:
openExample('satcom_antenna_phased/InterferenceFromSatConstellationOnCommunicationsLinkExample')
  • Alternatively, the same example can be accessed in MATLAB Online, directly from the “Open in MATLAB Online” button on the following link.
Hope this helps.
Thanks
Gyan

Categorías

Más información sobre Get Started with Satellite Communications Toolbox 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!

Translated by