Matlab Coder: Generate code for 'main' function for fixed-point code
古いコメントを表示
I am trying to generate fixed-point C code for a Matlab program using Matlab Coder and the Fixed-Point Toolbox. Using the Matlab Coder I was able to generate the C code under the setting: static library on the host computer. I see that the generated code also contains a dummy main function which invokes the function. This would be sufficient in the general case but not when using the Fixed-Point Toolbox, because I also require code to convert my input arguments to fixed-point, which is non-trivial. This task requires knowing the fraction length of each input argument and the quantization code to convert the float variable to fixed written in C.
Can anyone tell me how to generate C code for the main script which invokes the Matlab function?
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Fixed-Point Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!