Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

未定义函数或变量 'vec'。 #1

Open
sheng00125 opened this issue Nov 20, 2022 · 3 comments
Open

未定义函数或变量 'vec'。 #1

sheng00125 opened this issue Nov 20, 2022 · 3 comments

Comments

@sheng00125
Copy link

未定义函数或变量 '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));

@Cindyi-ctl
Copy link

The function 'vec' may be used to make a vector.
You can check this link:
localmin/Multi-channel-NMF#1
https://ww2.mathworks.cn/matlabcentral/answers/370525-how-can-i-make-a-vector-in-matlab-like-vec-x

@guangyangzeng
Copy link
Contributor

guangyangzeng commented Nov 24, 2022

'vec'是matlab 2022a版本自带的函数,作用是将一个矩阵向量化。出错的话,可以尝试参考下面链接创建一个'vec'函数:
https://www.mathworks.com/matlabcentral/answers/48658-share-your-favorite-snippet-or-utility#answer_59470
当然也可以自己写一个'vec'函数。

@sheng00125
Copy link
Author

我的环境是 MATLAB 2020b 加了这个函数 就好了,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants