CVX报错“未定义与输入参数‘double‘’相对应的函数‘vec‘”
作者:互联网
错误信息如下:
未定义与输入参数’double’’相对应的函数’vec’
error cvxprob/solve (line 250)
Anew2 = Anew * diag(sparse(vec(amult(orow,:))));
error cvx_end (line 88)
solve( prob );
error TDMA_solvedby_cvx (line 110)
cvx_end
解决方法:
将 cvx/functions/vec_目录添加到MATLAB的路径中即可。
错误产生原因及操作见下面链接:
http://ask.cvxr.com/t/help-undefined-function-vec-for-input-arguments-of-type-double/779
标签:CVX,cvx,double,报错,未定义,error,line,vec 来源: https://blog.csdn.net/feifei__wang/article/details/115271452