VR to MATLAB Coordinates
(To be removed) Convert VR coordinates to MATLAB coordinates
VR to MATLAB Coordinates will be removed in a future release. For more information, see Version History.
Simulink 3D Animation / Utilities
The VR to MATLAB Coordinates block converts a point with coordinates in the Virtual World coordinate system (Znear) to the MATLAB® coordinate system (Zup).
The following relation holds between the two coordinate systems:
[xm, ym, zm] = [xv, -zv, yv]
where MATLAB coordinates are denoted with the m subscript and Virtual World coordinates are denoted with the v subscript. For more information on the two coordinate systems, see Virtual World Coordinate System.
VR — Coordinates in the Virtual World coordinate system
Coordinates of a point in VRML notation, specified as a 3-element row vector.
M — Coordinates in the MATLAB coordinate system
Coordinates of a point in MATLAB notation, returned as a 3-element row vector.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version HistoryIntroduced in R2019a
R2023b: To be removed
The VR to MATLAB Coordinates block will be removed in a future
release. Instead, use
sim3d classes and Simulation 3D
blocks in Unreal Engine Scenario Applications to
interface MATLAB and Simulink® with the Unreal Engine® 3D simulation environment. To get started, see Get Started Creating Virtual World with Actors.