Please, if anyone knows please help me to debug this "Error in OFDM (line 20) info = h5gOFDMInfo(genb);"
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to implement "HDL Code Generation for Filtered OFDM (F-OFDM) Transmitter" in this article: https://www.mathworks.com/help/wireless-hdl/ug/hdl-code-generation-for-filtered-ofdm-f-ofdm-transmitter.html
However, when calling the h5gOFDMInfo function, the mat lab reported the following error: "Undefined function 'h5gOFDMInfo' for input arguments of type 'struct'."
Does anyone know how to fix this error? Help me please. Do I need to add something to my library?
0 commentaires
Réponses (2)
Chaitanya
le 11 Juil 2023
The error message you encountered, "Undefined function 'h5gOFDMInfo' for input arguments of type 'struct'", suggests that the function `h5gOFDMInfo` is not recognized or available in your MATLAB environment.
The `h5gOFDMInfo` function is part of the Communications Toolbox library in MATLAB, specifically introduced in MATLAB R2019b. To resolve this issue, ensure that you have the Communications Toolbox installed and that your MATLAB version is R2019b or later.
If you have confirmed that you meet the requirements and are still encountering this error, there are a few steps you can take:
1. Check the spelling and capitalization of the function name. Ensure that it matches exactly as `h5gOFDMInfo`.
2. Verify that the Communications Toolbox is correctly installed and licensed. You can do this by checking the "Add-Ons" section in the MATLAB Home tab and confirming that the Communications Toolbox is listed as installed and activated.
3. If you recently installed the Communications Toolbox or updated your MATLAB version, try restarting MATLAB to ensure that any changes are properly recognized.
Hope this helps!
4 commentaires
Walter Roberson
le 11 Juil 2023
Your R2022a release documents https://www.mathworks.com/help/releases/R2022a/wireless-hdl/ug/hdl-code-generation-for-filtered-ofdm-f-ofdm-transmitter.html as needing DSP HDL Toolbox and Wireless HDL toolbox... and does not mention Communications Systems Toolbox.
Bharath Venkataraman
le 12 Juil 2023
Could you tell us which version of MATLAB you are using?
If you open the Filtered OFDM example using openExample, the relevant helper files needed will be copied over. Please try the following command: openExample('whdl/FOFDMTransmitterExample')
Bharath
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!