MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB混合编程] 用matlab coder转c程序遇到问题 (https://www.labfans.com/bbs/showthread.php?t=20825)

bingsmile 2015-05-28 17:48

用matlab coder转c程序遇到问题
 
本人初次使用matlab coder将语音识别matlab程序转为c程序,遇到一些问题,希望论坛上的高手能给予指点,在此先表示一下感谢。
相关程序比较复杂,我只摘抄一下其中一个转换出错的程序:

function res = getsr ( sig )
res = sig.samplerate;


coder设置: sig struct :50*1

错误提示:??? Referencing a component from array of non-scalar values is not supported.

方程很简单,但是不知道如何更改能满足coder转换的需求。


所有时间均为北京时间。现在的时间是 13:32

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.