フィルターのクリア

Plot data from simulink

2 ビュー (過去 30 日間)
Carlos Castañeda
Carlos Castañeda 2018 年 6 月 15 日
編集済み: Ankita Bansal 2018 年 6 月 21 日
Hi, I'd like to know if I can plot two different series from simulink in one single 3d plot.
From simulink I'm having the following for a 300s simulation:
I want the Bit Angular Displacement to be the Z axis. Is there a way to do it?
Thanks.

回答 (1 件)

Ankita Bansal
Ankita Bansal 2018 年 6 月 21 日
編集済み: Ankita Bansal 2018 年 6 月 21 日
Hi, if you are exporting data to workspace then you can do it using "plot3".
Have a look at this example
close all
clear all
x=0:100;
y1=sin(x); % RPM
z1=0*x;
y2=0*x;
z2=cos(x); % Bit Angular Displacement
plot3(x,y1,z1)
hold on
plot3(x,y2,z2)
hold off
legend('sin(x)','cos(x)')

カテゴリ

Help Center および File ExchangeView and Analyze Simulation Results についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by