关于MATLAB转C++代码(二)

版权声明: https://blog.csdn.net/qq_25147107/article/details/83621163

有一些遇到过的问错误提示

一、“The left-hand side has been constrained to be non-complex, but the right-hand side is complex. To correct this problem, make the right-hand side real using the function REAL, or change the initial assignment to the left-hand side variable to be a complex value using the COMPLEX function.”

MATLAB里面的类型我也不太明白,大概是复数和实数不能互转,我都把他们用函数real()转换成了实数,如代码中注释的部。

2、“Undefined function or variable 'sparse'.”

关于稀疏矩阵的,居然找到一大堆sparse.m,每个都设断点,居然没有一个是,无奈只好自己写了,运气好能用

3、生成一堆头文件和源文件,在libwe文件中,导入VS中,注意stdafx.h

猜你喜欢

转载自blog.csdn.net/qq_25147107/article/details/83621163