Error while running "NR NTN PDSCH Throughput" example.

Hi,
I'm following the example code in "https://www.mathworks.com/help/satcom/ug/nr-ntn-pdsch-throughput.html"
I keep receiving the error
>> NTN_Network_Test2
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Error in NTN_Network_Test2 (line 549)
harqEntity{harqId} = HARQEntity(harqSequence(harqId),rvSeq,pdsch.NumCodewords);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I'm using MATLAB R2024b, I've installed 5G Toolbox version 24.2 and Satellite Communications Toolbox version 24.2
I've also attached my code for reference.
Thank you kindly for any help!

댓글 수: 3

Hey Taufiq,
The script that you shared compiles and runs without any error when placed within the NewRadioPDSCHInNTNChannelThroughputExample directory. Could you try that out to see if that fixes the issue ?
You can access it from your MATLAB installation using the following command:
openExample('shared_satcom_5g/NewRadioPDSCHInNTNChannelThroughputExample')
Thank you very much for the help!
The example worked fine thankfully, though I'd like to rewrite the code in the example into a blank script.
Any idea on why I ran into the first issue?
Thank you so much again.
Hey Taufiq,
Since the example folder has a class file called HarqEntity the properties referenced from it might have been set to Not a Number (NaN) value which could result in the error of the array index values being invalid.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Reference Applications에 대해 자세히 알아보기

질문:

2024년 11월 22일

댓글:

2024년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by