Info
This question is closed. Reopen it to edit or answer.
two questions about mupad
3 views (last 30 days)
Show older comments
There is a problem I come across:
how to make the tangential line disappear at the end of this animation?
f:=x->sin(x):
T:=2*PI:
p1:=plot::Function2d(sin(x),x=-PI..4*PI):
p2:=plot::Line2d([x-T/16,f(x)-f'(x)*T/16],[x+T/16,f(x)+f'(x)*T/16],x=-T/14..11*T/10.5,LineColor=RGB::Red):
plot(p1,p2)
Any suggestion will be appreciated.
1 Comment
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!