MATLAB 帮助中心
Convert Cartesian coordinates to homogeneous coordinates
hom = cart2hom(cart)
hom = cart2hom(cart) converts a set of points in Cartesian coordinates to homogeneous coordinates.
hom
cart
example
collapse all
c = [0.8147 0.1270 0.6324; 0.9058 0.9134 0.0975]; h = cart2hom(c)
h = 2×4 0.8147 0.1270 0.6324 1.0000 0.9058 0.9134 0.0975 1.0000
Cartesian coordinates, specified as an n-by-k matrix, containing n points. Each row of cart represents a point in k-dimensional space. k must be greater than or equal to 1.
Example: [0.8147 0.1270 0.6324; 0.9058 0.9134 0.0975]
[0.8147 0.1270 0.6324; 0.9058 0.9134 0.0975]
Homogeneous points, returned as an n-by-(k+1) matrix, containing n points. k must be greater than or equal to 1.
Example: [0.2785 0.9575 0.1576 0.5; 0.5469 0.9649 0.9706 0.5]
[0.2785 0.9575 0.1576 0.5; 0.5469 0.9649 0.9706 0.5]
expand all
cart2hom
The cart argument now accepts 2-D Cartesian coordinates and cart2hom outputs 2-D homogeneous points.
hom2cart
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处