Multiple 2D plot in 1 3D plot
Mostrar comentarios más antiguos
Hello, I'm looking for a way to draw multiple 2d plot in 3D plot. I have a vector time=[1,2,3,4,5]; I want to plot it as x-axis. I have also 3 vector as the data that I want to plot. It' depend just about time and every vector belong to a value of Z. So I have 3 plot p1(x,y); p2(x,y); p3(x,y); p1 belong to z=0.1 p2 z=0.3 p3 z=0.3; Y depend just about time and Z is fixed.
I'm looking for results like this Thank you
Respuesta aceptada
Más respuestas (1)
krishna teja
el 14 de Abr. de 2020
use waterfall command
example
Nactions = 5;
Ntime = 5;
x = (1:Nactions); % actions
y = (1:Ntime); % time
[X,Y] = meshgrid(x,y);
z = rand(Ntime,Nactions);
w = waterfall(X,Y,z)
w.EdgeColor = 'b';
w.EdgeAlpha = 0.5;
w.FaceColor = 'b';
w.FaceAlpha = 0.2;
xlabel('actions')
ylabel('time')
zlabel('probabilities')
title('waterfall')
1 comentario
Van Trung Tin HUYNH
el 10 de En. de 2023
Thank you for your example. It is useful for my work.
Categorías
Más información sobre Annotations 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!