Convert homogeneous coordinates to Cartesian coordinates
cart = hom2cart(hom)
example
cart = hom2cart(hom) converts a set of homogeneous points to Cartesian coordinates.
cart
hom
collapse all
h = [0.2785 0.9575 0.1576 0.5; 0.5469 0.9649 0.9706 0.5]; c = hom2cart(h)
c = 2×3 0.5570 1.9150 0.3152 1.0938 1.9298 1.9412
Homogeneous points, specified as an n-by-k matrix, containing n points. k must be greater than or equal to 2.
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]
Cartesian coordinates, returned as an n-by-(k–1) matrix, containing n points. Each row of cart represents a point in (k–1)-dimensional space. k must be greater than or equal to 2.
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]
cart2hom
You have a modified version of this example. Do you want to open this example with your edits?