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.

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;
 

how about

to create a coding for

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

how to declare
the funtion of "|A|<1"
when i use
0<A<1
it was error
 

>> 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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top