How can I plot two 2D figures simultaneously, with one orthogonal to the other? They both share the same t axis, but the x axis lies perpendicular to the z axis and t axis, and they all share the same zero point.
Mostrar comentarios más antiguos
t = 0:.1:20;
x = 2*(18./(.5*t+.5).^.5 - 5.5);
z = 18./(.5*t+.5).^.5 - 5.5;
figure(1)
plot(t,x,':')
xlabel('Time')
ylabel('Distance')
set(gcf,'color','w')
figure(2)
plot(t,z,':')
xlabel('Time')
ylabel('Sink Rate')
set(gcf,'color','w')
axis([-inf inf -20 20])
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!