Borrar filtros
Borrar filtros

Coordinate system or axis system

1 visualización (últimos 30 días)
Sagar Chawla
Sagar Chawla el 15 de Mzo. de 2022
Comentada: Sagar Chawla el 1 de Abr. de 2022
I want to change the axis in the 3d graphical representation. Let's take I have a 3d car model on the graph. I want to change the X-axis to Y-axis and the Z-axis to X-axis to make it look according to a particular format. Please look at the normal graph pic I have attached with this and tell me the method to change it.
  5 comentarios
Sagar Chawla
Sagar Chawla el 16 de Mzo. de 2022
Okay, I will try to give you the code. Thanks for the answer.
Sagar Chawla
Sagar Chawla el 1 de Abr. de 2022
Here is the code, it is not for the graph shown above. % prepare environment and generate aircraft trajectory clear all; close all; clc; data = zeros(400,6); % x, y and z coordinates data(:,1) = 0; data(:,2) = .5:.5:200; data(:,3) = 500; % pitch, yaw and roll angle values data(:,4) = 0; data(:,5) = 0; data(21:380,6) = (1:1:360)/57.3; % prepare aircraft simulation model new_object('aircraft.mat',data,... 'model','f-16.mat', 'edge',[.1 .1 .1],'face',[.1 .1 .1],... 'path','on','pathcolor', [.89 .0 .27],'pathwidth',1,'scale',1); % generate the scene and save the result as gif file flypath('aircraft.mat',... 'animate','on','step',3,... 'font','Georgia','fontsize',10,... 'view',[35 45],'window',[700 700],... 'output','aileron_roll.gif',... 'xlim',[-20 20],'ylim',[0 200], 'zlim',[480 520]); The image shows the diagram on a z, x & y axis. I want to change coordinates as z in place of x and y in place of z and x in place of y.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by