Multiple real time plots on multiple figures
12 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello all, greetings. I´m a beginner in Matlab. I want to plot real time graphs on matlab for 4 motors, the data being read from the serial port. The data from the serial port will contain certain parameters that I should extract and compute and plot graphs in real time. My front screen will have buttons for 4 motors. When i click on m1, it should display live graphs (read from the the serial port) and when i click on m2, the corresponding data for m2 needs to be plotted, simultaneous to m1 graphs on another figure. Is this possible? If yes, please give me an basic algorithm to follow. I can catch up from there. I appreciate any kind of help. Thanks a lot!
0 Kommentare
Antworten (1)
Steven Samuel
am 11 Dez. 2020
I know this is some 4 odd years too late but you can just do
figure(1),plot (x, y)
figure(2),plot (x, y)
if you have them inside a while loop they will work or you can alternatively add this line after each figure declaration:
drawnow
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations 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!