0
我有一個Matlab編碼器的問題。我想從Matlab插值函數pchip
生成C代碼。我coder.screener
驗證功能,它說,它可以生成代碼,但是當我嘗試建立pchip.m
文件我得到這個錯誤:如何使用matlab編碼器將matlab函數'pchip'轉換爲c代碼
The function 'pchip' is not supported for standalone code generation. See the documentation for coder.extrinsic to learn how you can use this function in simulation.
誰能幫助我?我真的需要將這個函數轉換爲C語言編寫我正在編寫的程序。
代碼生成的pp = pchip(x,y)
對'pchip'的代碼生成支持已添加到R2014a http://www.mathworks.com/help/coder/release-notes.html中,因此如果您在此之前使用發行版,則可能會考慮升級。 –
非常感謝你這是它!解決方案升級到r2014。 – user2470360