3D plot of output variables

1 次查看(过去 30 天)
Telema Harry
Telema Harry 2022-11-6
回答: Simon Chan 2022-11-6
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.

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by