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
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Risposta accettata
Joseph Cheng
il 4 Giu 2015
Modificato: Joseph Cheng
il 4 Giu 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 Commenti
Più risposte (1)
Azzi Abdelmalek
il 4 Giu 2015
t=0:0.01:24
y=sin(t*pi).*(t<17)
plot(t,y)
1 Commento
Image Analyst
il 5 Giu 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
Vedere anche
Categorie
Scopri di più su Annotations in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
