sigstrength error with Satellite Toolbox example code

7 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2023-4-16
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 2023-6-5
I face the same problem. It also happens to the function link and ebn0 when I want to change the propagation model.

请先登录,再进行评论。

回答(1 个)

Gyan Vaibhav
Gyan Vaibhav 2023-12-22
编辑:Gyan Vaibhav 2023-12-22
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

类别

Help CenterFile Exchange 中查找有关 Get Started with Satellite Communications Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by