3D plot of output variables

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 日

0 投票

Try function plot3
data = load('Output100.mat');
plot3(data.Y1,data.Y2,data.t);

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2022a

質問済み:

2022 年 11 月 6 日

回答済み:

2022 年 11 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by