HI, i want to plot x=sin(t*pi) fuction like this picture for t[0:1:24] and x will be 0 when t=17
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Réponse acceptée
Joseph Cheng
le 4 Juin 2015
Modifié(e) : Joseph Cheng
le 4 Juin 2015
figure out what azzi was doing in the math which would lead you to figure out what to change.
t=0:0.01:24
y=sin(t*pi).*(t<15) + 3*sin(t*pi).*(t>=15)
plot(t,y)
0 commentaires
Plus de réponses (1)
Azzi Abdelmalek
le 4 Juin 2015
t=0:0.01:24
y=sin(t*pi).*(t<17)
plot(t,y)
1 commentaire
Image Analyst
le 5 Juin 2015
david's two "Answers" moved here: because they are comments (replies) to Azzi and not "Answers" to his original question at the top of the page.
thank you Mr.AZZI i'm really satisfied with your answer so if I want to change the amplitude at t = 15 like this picture

y=sin(t*pi) for 0<t<15
y=3*sin(t*pi) for t>15
thank you very much . my last question is if i want to change the amplitude of sinus 7 times 0<t<38
first for 0<t<10 y= sin(t*pi)
and for 10<t<15 y=2*sin(t*pi)
and for 15<t<19 y=5*sin(t*pi)
and for 19<t<24 y=sin(t*pi)
and for 24<t<27 y=0
and for 27<t<35 y=4*sin(t*pi)
and for 35<t<38 y=0
Voir également
Catégories
En savoir plus sur Annotations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
