how to do animation for moving a label
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Tio Shi Jie
am 10 Mai 2016
Beantwortet: Tio Shi Jie
am 10 Mai 2016
Cell=mat(4) Cell(1,1)=0 Cell(3,4)=2 Cell=0 Mee=Cell+1 Disp(Cell)
0 Kommentare
Akzeptierte Antwort
KSSV
am 10 Mai 2016
x = rand(10,1) ;
y = rand(10,1) ;
plot(x,y,'r') ;
xlabel('tom') ;
xlabh = get(gca,'XLabel');
for i = 1:10
set(xlabh,'Position',get(xlabh,'Position') - [0.1/i 0. 0])
pause(0.5)
end
0 Kommentare
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!