convert nr functions to c code

7 ビュー (過去 30 日間)
yusuf enis temiz
yusuf enis temiz 2023 年 9 月 11 日
回答済み: Garmit Pant 2023 年 9 月 22 日
how can i convert nr functions in matlab into c like nrSSS nrPSS

回答 (1 件)

Garmit Pant
Garmit Pant 2023 年 9 月 22 日
Hello Yusuf
I understand that you are trying to convert MATLAB functions ‘nrPSS’ and ‘nrSSS’ to C code.
The MATLAB functions ‘nrPSS’ and ‘nrSSS support C/C++ code generation using MATLAB Coder. You would need to use the functions inside a user-defined functions and then use the MATLAB Coder App to convert the function to C code. Refer to the following code snippet to write the function:
function sss = genNRSSS(ncellid)
sss = nrSSS(ncellid);
end
Save the file as ‘genNRSSS.mand then use the MATLAB Coder App to convert the MATLAB function to C Code.
Follow the instructions in the MATLAB Coder App and you’d be able to convert the function to C code. You can follow the same method for the function ‘nrPSS’ with necessary changes.
For further understanding, refer to the following MATLAB Documentation:
  1. https://www.mathworks.com/help/5g/ref/nrsss.html - ‘nrSSS’ function.
  2. https://www.mathworks.com/help/5g/ref/nrpss.html - ‘nrPSS’ function.
I hope this helps!
Best Regards
Garmit

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by