[英]plotting a point (4x1) matrix in 3d Plot on matlab
How can i plot the New_P in 3D i'm using robotic toolbox peter corke i should use trplot() function but it's not working it shows that it takes 3x3 or 4x4 any way to plot it on 3d How can i plot the New_P in 3D i'm using robotic toolbox peter corke i should use trplot() function but it's not working it shows that it takes 3x3 or 4x4 any way to plot it on 3d
P = transpose([2,3,4,0]);
New_P = trotx(45) * P
trplot(New_P)
Please read on how to ask questions properly .请阅读如何正确提问。 If you read on trplot
, it obviously says that:如果您阅读trplot
,它显然会说:
trplot(T, options)
draws a 3D coordinate frame represented by the homogeneous transformT
(4x4) .trplot(T, options)
绘制由齐次变换T
(4x4)表示的 3D 坐标系。
and和
trplot(R, options)
as above but the coordinate frame is rotated about the origin according to the orthonormal rotation matrixR
(3x3) .trplot(R, options)
同上,但坐标系根据正交旋转矩阵R
(3x3)围绕原点旋转。
I do not know how trtox
is defined and what the class of trtox(45)
is, but P
is a 4x1 vector and therefor New_P
most likely does not seem to be a proper input for trplot
, hence the complaint on the input size.我不知道trtox
是如何定义的以及trtox(45)
的 class 是什么,但是P
是一个 4x1 向量,因此New_P
很可能不是trplot
的正确输入,因此对输入大小的抱怨。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.