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

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

一、“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、生成一堆头文件和源文件,在lib文件中,导入VS中,注意stdafx.h

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值