错误:未知类型名称'mxArray'

时间:2012-10-29 15:23:40

标签: matlab matlab-compiler

当我尝试使用MATLAB mex命令编译c文件时,我遇到了以下错误

  

错误:未知类型名称'mxArray'

错误代码在这里

const char *model_to_matlab_structure(mxArray *plhs[], int num_of_feature, struct svm_model *model);
struct svm_model *matlab_matrix_to_model(const mxArray *matlab_struct, const char **error_message);

我不明白为什么MATLAB不能识别mxArray类型。我怎么能解决这个问题?谢谢!

1 个答案:

答案 0 :(得分:0)

感谢。事实证明我忘记了

#include "mex.h"