Plotting a 3D array over time - APP Designer

10 views (last 30 days)
Nelson Cavaco
Nelson Cavaco on 30 Nov 2020
Commented: Nelson Cavaco on 30 Nov 2020
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);

Answers (1)

Sudheer Bhimireddy
Sudheer Bhimireddy on 30 Nov 2020
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:
  1 Comment
Nelson Cavaco
Nelson Cavaco on 30 Nov 2020
i want to plot them all in Y-axis and time in do i do that?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!