HARQEntity function does not get executed

When I try to execute HARQEntity function that is in one of MATLAB's examples, I get this message:
'HARQEntity' is used in the following examples:
DL-SCH and PDSCH Transmit and Receive Processing Chain
Model 5G NR Transport Channels with HARQ
NR PDSCH Throughput
NR PUSCH Throughput
6G Link-Level Simulation
NR NTN PDSCH Throughput
I tried to run NR PUSCH Throughput example and when it reaches HARQEntity Function the script give an undescriptive error.

Answers (1)

Do you have a licence for MATLAB's 5G Toolbox, and is it properly installed ?
Use
license checkout matlab_5g_Toolbox
ans = 1
to see if the license is working properly.
Answer should be 1.
Which MATLAB version do you use ? If it's older than R2021b, the function is missing - it was released in R2021b.

2 Comments

I'm using MATLAB 2024b.
I do have a 5G toolbox license:
license checkout matlab_5g_Toolbox
ans =
1
But I'm not able to find HARQEntity.m
Torsten
Torsten on 1 Aug 2025
Edited: Torsten on 1 Aug 2025
Here is the path where it was saved in an older MATLAB version:
Do the examples where the function is used work for you, e.g.
openExample('5g/Modeling5GNRTransportChannelsWithHARQExample')
?
If you still have problems running the example, contact MATLAB Technical Support:

Sign in to comment.

Categories

Tags

Asked:

on 31 Jul 2025

Edited:

on 1 Aug 2025

Community Treasure Hunt

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

Start Hunting!