How do i plot simulink signal graph (simscope) on matlab 2016 workspace
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
adebayo tinuoye
am 3 Apr. 2018
Beantwortet: adebayo tinuoye
am 11 Apr. 2018
i am using Matlab2016 and i simulated a model and it worked well. i was able to generate the graph on simscope. but to now view the simscope graph on matlab workspace is becoming difficult. In Matlab 2013, i just type the command: "simplot(scopedata);" and i see the graph. This command is not working for 2016. What can i do?
0 Kommentare
Akzeptierte Antwort
Birdman
am 3 Apr. 2018
Use a To Workspace block to log your signal. Set its Save format to Structure with time and name it as ScopeData. Then, when the simulation is over, type the command:
time=ScopeData.time;
data=ScopeData.signals.values(:,1);
plot(time,data)
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu View and Analyze Simulation Results finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!