how to do animation for moving a label

1 回表示 (過去 30 日間)
Tio Shi Jie
Tio Shi Jie 2016 年 5 月 10 日
回答済み: Tio Shi Jie 2016 年 5 月 10 日
Cell=mat(4) Cell(1,1)=0 Cell(3,4)=2 Cell=0 Mee=Cell+1 Disp(Cell)

採用された回答

KSSV
KSSV 2016 年 5 月 10 日
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

その他の回答 (1 件)

Tio Shi Jie
Tio Shi Jie 2016 年 5 月 10 日
Thanks,Because I doing 1024games so in my GUI,my lecturer request got animation for the moving value labels so isn't used the same concept?

カテゴリ

Help Center および File ExchangeJust for fun についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by