How can I do a 3D plot after simulation.

Hello to All
I have a Simulink model and the output file is attached.
I want to have a 3D plot of [Id_6 column1, Id_6 column2 , t]
it means that the Id_6 has 3 columns based on t and I want to plot only 2 of them in terms of t .
Can you advise?

 Respuesta aceptada

Try this —
LD = load('output_a_f_LL_bus5.mat');
Data = LD.Id_6.Data;
t = LD.t.Time;
figure
plot3(Data(:,1), Data(:,2), t)
grid on
xlabel('Column 1')
ylabel('Column 2')
zlabel('t')
title('Id\_6')
.

4 comentarios

Atefeh
Atefeh el 22 de Sept. de 2023
Thanks a bunch for your assisstance.
Star Strider
Star Strider el 22 de Sept. de 2023
My pleasure!
If my Answer helped you solve your problem, please Accept it!
.
Atefeh
Atefeh el 22 de Sept. de 2023
Sure, I really appreciate your help
Star Strider
Star Strider el 22 de Sept. de 2023
Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Sept. de 2023

Comentada:

el 22 de Sept. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by