I have an object I would like to center in the figure frame when using fanimator. Say the x-position of the object is simply
Then, I would like to be able to use xlim in a way like
hold on;
fanimator(@(t) plot(x(t),y(t)));
xlim([-5 5] + x(t));
ylim([0 3])
hold off;
However, x is just a function handle and t is undefined. How can I achieve this?
댓글 수: 0
댓글을 달려면 로그인하십시오.