How to create an animation between 2 points
2 次查看(过去 30 天)
显示 更早的评论
采纳的回答
KSSV
2021-5-10
A = [0 0] ;
B = [5 4] ;
x = [A(1) B(1)] ;
y = [A(2) B(2)] ;
p = polyfit(x,y,1) ;
xi = linspace(x(1),x(2)) ;
yi = polyval(p,xi) ;
comet(xi,yi)
plot(x,y,'*r',xi,yi,'b')
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!