sigstrength error with Satellite Toolbox example code

조회 수: 7 (최근 30일)
Lieselotte Heinrich
Lieselotte Heinrich 2023년 4월 16일
편집: Gyan Vaibhav 2023년 12월 22일
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