Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Sinc plot using Matlab

Status
Not open for further replies.

rajivn786

Newbie level 2
Joined
May 23, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,302
sinc function in matlab

Hi,

Can anyone tell me how to plot this fn using matlab


Tb sinc^2(fTb)sin^2(pi.f.Tb)
 

matlab sinc

If you have the DSP toolbox then you can use the sinc() function but otherwise you will have to write to explicitly create the sinc with sin(x)./x.
Code:
%Create a time vector 
t = 1 : .1 : 10 ;

%Create signal
y =  Tb*sinc(f*Tb)^2*sin2(pi*f*Tb)^2 ;

%Plot
plot(t,y)

You'll need to define Tb and f also.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top