hom2cart
Convert homogeneous coordinates to Cartesian coordinates
Syntax
Description
Examples
Convert Homogeneous Points to 3-D Cartesian Points
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
Input Arguments
hom
— Homogeneous points
n-by-k matrix
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]
Output Arguments
cart
— Cartesian coordinates
n-by-(k–1) matrix
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]
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Version History
Ouvrir l'exemple
Vous possédez une version modifiée de cet exemple. Souhaitez-vous ouvrir cet exemple avec vos modifications ?
Commande MATLAB
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)