Error while generating HDL code from Matlab: Invalid data type. H must be double.
显示 更早的评论
While trying to generate Verilog file using HDL Coder, I got the following error in the Fixed-Point Conversion step.

And the Error Report is shown as below:

The source code is an MPC controller, which have been uploaded in the attachment. Kindly help me resolve the issue.
Thanks.
采纳的回答
更多回答(1 个)
Kiran Kintali
2022-2-2
0 个投票
Can you share your design.m, testbench.m files and the project file with necessary settings? Thanks
类别
在 帮助中心 和 File Exchange 中查找有关 Code Generation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!