这个简单的例子演示了使用MATLAB Coder (R2020a及更新版本)从MATLAB类生成c++类。
请参阅《从MATLAB生成C代码的乐趣》一文中的代码生成示例
run_unit_tests.m-运行所有测试
TestAddOne-版权所有The MathWorks, Inc. 2014 - 2015
callKalmanFilter(位置)-版权所有The MathWorks, Inc. 2014 - 2015
plot_kalman_filter_trajectory (z, y)-版权所有The MathWorks, Inc. 2014 - 2015
TestKalmanFilter-版权所有The MathWorks, Inc. 2014 - 2015
myMult (a, b)-版权所有2012 - 2016 The MathWorks, Inc.
myTestBench.m-版权所有2012 - 2016 The MathWorks, Inc.
nrt(变长度输入宗量)-这个函数将使用牛顿搜索技术来查找
Testbench.m-版权所有2012 - 2016 The MathWorks, Inc.
addOne (x)-版权所有The MathWorks, Inc. 2014 - 2015
关于R2008a的定点建模和代码生成的技巧。包括引用的模型文件。
lct_fixpt_signals_script.m—使用定点信号调用遗留函数
使用MATLAB和MATLAB编码器单元测试C代码的示例文件
addOne (x)-版权所有The MathWorks, Inc. 2014 - 2015
run_unit_tests.m-运行所有测试
TestAddOne-版权所有The MathWorks, Inc. 2014 - 2015
callKalmanFilter(位置)-版权所有The MathWorks, Inc. 2014 - 2015
plot_kalman_filter_trajectory (z, y)-版权所有The MathWorks, Inc. 2014 - 2015
TestKalmanFilter-版权所有The MathWorks, Inc. 2014 - 2015