Slider for Time Control in graph

1 visualizzazione (ultimi 30 giorni)
Sérgio Querido
Sérgio Querido il 27 Nov 2017
How can i have a slider which allows me to choose the time and respectively shows the right dd's coordinates. How can i codify uicontrol??
pitch = [0 67; 0 0; 104 67; 104 0; 0 67] %always the same values over the time
time=[1;2;3;4;5] %time in seconds
dd = [2 5; 6 9; 7 8; 9 10; 10 30] %displacement over the time
figure;
title ('posições defesas');
plot (pitch(:,1),pitch(:,2),'k');
hold on
axis equal
plot(dd(:,1),dd(:,2),'r');

Risposte (0)

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by