Open sheng00125 opened 1 year ago
The function 'vec' may be used to make a vector. You can check this link: https://github.com/localmin/Multi-channel-NMF/issues/1 https://ww2.mathworks.cn/matlabcentral/answers/370525-how-can-i-make-a-vector-in-matlab-like-vec-x
'vec'是matlab 2022a版本自带的函数,作用是将一个矩阵向量化。出错的话,可以尝试参考下面链接创建一个'vec'函数: https://www.mathworks.com/matlabcentral/answers/48658-share-your-favorite-snippet-or-utility#answer_59470 当然也可以自己写一个'vec'函数。
我的环境是 MATLAB 2020b 加了这个函数 就好了,谢谢!
未定义函数或变量 'vec'。
出错 CPnP (line 20) obs=vec(Psens_2D);
出错 main (line 33) [R_1,t_1,R_GN,t_GN]=CPnP(s,Psens_2D,focal,focal,A(1,3),A(2,3));