How can I do a 3D plot after simulation.

2 ビュー (過去 30 日間)
Atefeh
Atefeh 2023 年 9 月 22 日
コメント済み: Star Strider 2023 年 9 月 22 日
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?

採用された回答

Star Strider
Star Strider 2023 年 9 月 22 日
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 件のコメント
Atefeh
Atefeh 2023 年 9 月 22 日
Sure, I really appreciate your help
Star Strider
Star Strider 2023 年 9 月 22 日
Thank you!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by