首页> 中文期刊> 《价值工程》 >MATLAB程序转C代码的方法研究

MATLAB程序转C代码的方法研究

         

摘要

通过MATLAB程序转C代码的研究与应用可以加快软件、算法从研究到实际应用的进程,提高软件、算法研发的效率.对于转C的流程、方法、注意事项以及限制等问题需要深入研究.以MATLAB2014的转C工具MATLAB Coder为基础,分析了MATLAB转C代码的细节,完整地研究了MATLAB代码转成C代码的整体流程.通过合理的转C规范,MATLAB支持常规算法和大多数工具库函数转C,保持原功能、逻辑不便.使用动态预分配内存,外置接口,简化函数等方法,使得一部分非常规算法、不支持转C或限制性MATLAB函数能够正确转化为C语言代码.%The research and application that MATLAB program transforming to C code can expedite the progress from algorithm or software research to practical application and improve the efficiency of software or algorithm development. These problems about transformation's processes, methods, points for attention, limitation and so on need to be further researched. Based on MATLAB Coder of Matlab2014 tool for transforming to C, it analyses details of MATLAB transforming to C code and its whole process. With reasonable transformation specification, MATLAB support general algorithm and most tool functions to transform to C code, which retain intrinsic function and logic. Using some methods such as dynamically pre-allocating memory, external interface and simplifying functions, it also makes a part of uncommon algorithm and MATLAB tool functions which are not support to transform to C or have transformation limitation possible to successfully transform to C language code.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号