Slider for Time Control in graph

조회 수: 1 (최근 30일)
Sérgio Querido
Sérgio Querido 2017년 11월 27일
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');

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by