フィルターのクリア

sigstrength error with Satellite Toolbox example code

5 ビュー (過去 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 Center および File ExchangeSources and Sinks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by