필터 지우기
필터 지우기

How can I do a 3D plot after simulation.

조회 수: 1 (최근 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 CenterFile Exchange에서 Change Markers에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by