3D plot of output variables

1 vue (au cours des 30 derniers jours)
Telema Harry
Telema Harry le 6 Nov 2022
I will like to plot my output variables in a 3-D graph. I have not quite figure out how to do it.
Please find attached the matlab file. 't' is the time. 'Y1' and 'Y2' are the outputs.
Please see a template of the graph.

Réponses (1)

Simon Chan
Simon Chan le 6 Nov 2022
Try function plot3
data = load('Output100.mat');
plot3(data.Y1,data.Y2,data.t);

Catégories

En savoir plus sur Line Plots dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by