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.

[SOLVED] matlab help+envelope of a signal

Status
Not open for further replies.

sayfee

Junior Member level 1
Joined
Apr 22, 2011
Messages
19
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,389
say i have signal
a=[1 1 2 3 1 2 3];

i want to plot the envelope of this signal, how to do that in matlab?
thank you in advance.
 

These are few points to graph a good envelope.

For a general case use the Hilbert transform.

ht = hilbert(a) ; plot(abs(ht))
 
  • Like
Reactions: sayfee

    sayfee

    Points: 2
    Helpful Answer Positive Rating
These are few points to graph a good envelope.

For a general case use the Hilbert transform.

ht = hilbert(a) ; plot(abs(ht))
the envelope isnt following the massage..can u suggest me another code which follows accurately ??
thank you for your reply
eboard.jpg
 

But what is the definition of envelope you use?.
When you have a few points is not as intuitive as it is in a typical AM signal

The general definition is the modulus of the analytic signal, which is the value returned by the function hilbert ()
 

ok i need something like this:eboard2.JPG
i draw the picture so the lines are not strait.
 

the problem is sloved,
all i have to do is

plot(a),hold on
stem(a)
eboardd.jpg
thank you sir for your cooperation
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top