Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

i had problem to do the coding in matlab

Status
Not open for further replies.

dmss

Newbie level 3
Joined
Apr 17, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
how to make a coding for discrete-time periodic signal

s(n) = cos ωn
ω = 2π/5

i had try this coding but was error

n = 0:10
ω = 2*pi/5
s(n) = cos (ω*n);
plot (n,s(n)) grid on;
 

dmss

Newbie level 3
Joined
Apr 17, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
how about

to create a coding for

s(n) = A^|n|, |A|<1
 

dmss

Newbie level 3
Joined
Apr 17, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,297
how to declare
the funtion of "|A|<1"
when i use
0<A<1
it was error
 

pancho_hideboo

Advanced Member level 5
Joined
Oct 21, 2006
Messages
2,856
Helped
765
Reputation
1,530
Reaction score
718
Trophy points
1,393
Location
Real Homeless
Activity points
17,450
>> A=0.3;
>> n=0:10;
>> s = A.^abs(n)

s =

Columns 1 through 8

1.0000 0.3000 0.0900 0.0270 0.0081 0.0024 0.0007 0.0002

Columns 9 through 11

0.0001 0.0000 0.0000

>>
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top