关于 Net Slope Computation 的matlab配置咨询
Show older comments
公司使用了贵司的matlab 2011b,基于matlab 模型的自动代码生成,近期遇到了代码生成问题,符合以下路径的help文档。
但是找不到help文档中的所说的配置,请问该help文档是否支持 matlab 2011b?
请问以下蓝色背景内容在2011b的哪里设置?

详细情况如下:
模型图:

自动代码生成:
Vc = (UW)((((UD)Vb) * 171U) >> 3);
其中,Data Type Conversion输出设置为:fixdt(0,16,3/64,0)
当前模型生成的代码是有误差的。
请问 matlab 2011b情况下如何设置,才能生成类似help文档中的代码:Vc = (UW)((((UD)Vb) * 64U) / 3);
另外请问:为什么会生成Vc = (UW)((((UD)Vb) * 171U) >> 3)这样的代码?
Answers (0)
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!