MATLAB Answers

0

question about sinc function

hi how can i get this figure ?
Capture.PNG
i have used the following eq.
Capture2.PNG
by coding the following type;
but it did not work can u please help me with that ? i cannot get negative values. thanks.
t=-511*0.005:0.01:512*0.005;
u_1=3/2*(110*sinc(110*pi*t)-60*sinc(60*pi*t));

  댓글 수: 2

Hi Adnan
What exactly do want to plot ?
A sync(t) function ? Or function u(t) which you gave ?

로그인 to comment.

제품


릴리스

R2018b

답변 수: 2

Answer by KALYAN ACHARJYA on 2 Sep 2019
Edited by KALYAN ACHARJYA on 2 Sep 2019
 Accepted Answer

t=-linspace(-511*0.005,512*0.005,1000)
u_t=3*(sin(2*55*pi*t)-sin(2*30*pi*t))./(2*pi*t);
plot(u_t);

  댓글 수: 10

표시 이전 댓글 수: 7
Now this one sir?
t=-linspace(-511*0.005,512*0.005,1000)
u_t=3*((2*55*pi*t).*sinc(2*55*t)-(2*30*pi*t).*sinc(2*30*t))./(2*pi*t);
plot(t,u_t);
Torsten
on 2 Sep 2019
This doesn't help since you still divide by 0 at t=0.
If you divide out, you get what I wrote in my answer.
@Torsten OK sir, thanks for rectifying me. I will update it.
Gratitude!

로그인 to comment.


Answer by Torsten
on 2 Sep 2019
Edited by Torsten
on 2 Sep 2019

t = -511*0.005:0.005:512*0.005;
u_1 = 3/2*(110*sinc(110*t)-60*sinc(60*t));

  댓글 수: 1

thanks for your reply.

로그인 to comment.



Translated by