Plotting a 3D array over time - APP Designer
Ältere Kommentare anzeigen
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)
Antworten (1)
Sudheer Bhimireddy
am 30 Nov. 2020
0 Stimmen
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 Kommentar
Nelson Cavaco
am 30 Nov. 2020
Kategorien
Mehr zu Simulink finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!