two questions about mupad

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

I do not understand which animation is being referred to ?

Answers (0)

This question is closed.

Asked:

on 5 Dec 2011

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!