-2

我想将此 MATLAB 代码转换为 c++

function [ c ] = main() 
%#codegen
coder.inline('never'); 

c = imread('focus.jpg');

但它给了我这个error : The function 'imread' is not supported for standalone code generation. See the documentation for coder.extrinsic ??!!

4

1 回答 1

1

matlab编码器不支持函数“imread”,但matlab编译器通过deploytool在matlab命令窗口中使用关键字支持。

于 2014-03-17T11:45:39.070 回答