Plotting a 3D array over time - APP Designer

조회 수: 1 (최근 30일)
Nelson Cavaco
Nelson Cavaco 2020년 11월 30일
댓글: Nelson Cavaco 2020년 11월 30일
I have a simulink that do some calculations and outputs a 3D array in time. Let's say it's position over time, x,y and z.
I also have a GUI in app designer that is supposed to plot this data over time in a single graph.
This is my code:
simout = sim('teste','TimeOut',app.stop_time);
plot(app.UIAxes,simout.test.Time,simout.test.Data)

답변 (1개)

Sudheer Bhimireddy
Sudheer Bhimireddy 2020년 11월 30일
If you can export your values "to workspace" you can simply use plot3 function in your MATLAB code once the simulink run is completed.
If you want it to plot as you run Simulink, check this: https://www.mathworks.com/matlabcentral/fileexchange/4915-3dscope
  댓글 수: 1
Nelson Cavaco
Nelson Cavaco 2020년 11월 30일
i want to plot them all in Y-axis and time in X-axis..how do i do that?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by