matlab R2014a中转C遇到的若干问题(以firls函数为例)

问题1:与其他版本不同的生成过程

(1)、应用程序点击MATLAB Coder

(2)、添加文件,录入输入参数,N = 10;F = [0,0.2,0.3,1],M = [1,1,0,0]

(3)、输入名字,类型

(4)、编译则可生成

问题2:各种错误

(1)、The function 'sigcasttofloat' is not supported for standalone code generation

对输入的限制,感觉用途不大,直接删除

(2)、Undefined function or variable 'message'.

用于表达错误,然后打印的么?直接删除

(3)、Undefined function or variable 'firchk'.

用于判断N值,后续没应用,直接删除

(4)、Variable 'b0' is undefined on some execution paths

Variable 'I1' is undefined on some execution paths.

Variable 'I2' is undefined on some execution paths.

Variable 'G' is undefined on some execution paths.

原因是在c中需要初始化,因此加入变量初始化

3、编译成功,点击View report即可。

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值