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.

MatLab help! newbie question!

Status
Not open for further replies.

martinisonline

Member level 2
Member level 2
Joined
Apr 24, 2005
Messages
47
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Location
Portugal
Activity points
1,792
how can i represent on matlab this equation:

h[n]=d[n]+2*d[n-2]-2*d[n-3]

d[n] is the unit impulse sequence
 

u can do it as shown below

% declare d(n)
% declare value of n
% for example

d = [ 4, 3, 6, 3, 2, 3, 8, 2, 7, 4]

for n=4:10
h(n) = d(n) + 2*d(n-2) - 2*d(n-3);
end
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top