This example creates a simple plane take-off trajectory in the
virtual reality coordinate system and plots it in MATLAB using plot3.
The plane starts in the +x direction and goes up (positive values of y coordinate) in
the z=0 plane. We then convert the trajectory to MATLAB coordinates, so that it can be displayed in a 3D figure using the
MATLAB
plot3 command.
Define a simple take-off trajectory
vrpath = [0 0 0; 1 0 0; 2 0.2 0; 3 0.5 0; 4 1 0];
Convert the path from virtual reality coordinates to MATLAB coordinates
mpath = vrcoordvr2m(vrpath);
Display the path in a 3D plot using the plot3 command
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.