フィルターのクリア

refreshdata: stop axis updates

2 ビュー (過去 30 日間)
Linford Briant
Linford Briant 2014 年 2 月 13 日
編集済み: Mischa Kim 2014 年 2 月 13 日
Hi Matlab community,
I am using refreshdata to animate, but everytime refreshdata updates the graph, for the next timestep in the animation, it optimises the surface plots axes. I want the axis to be fixed.
Does anyone know how to make sure that the axis is fixed at each update?
An exmaple of the code I am using is below:
h = surf(X,Y,Z)
set(h,'ZDataSource','Z')
for k=1:100
for j=1:20
for i=1:5
Z(i,j)=N.data(k*20,1+RAND(i,j));
end
end
refreshdata;
pause(0.2);
end
Thanks,
Linford

採用された回答

Mischa Kim
Mischa Kim 2014 年 2 月 13 日
編集済み: Mischa Kim 2014 年 2 月 13 日
Linford, how about refreshing only the data in the loop using the set command:
h = surf(X,Y,Z)
...
set(h,'ZData',new_ZData)
new_ZData would be your Z, of course.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by