cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Plotting failed for Dirac Delta (Unit Impulse) Function. Why?

Cornel
19-Tanzanite

Plotting failed for Dirac Delta (Unit Impulse) Function. Why?

Hello,

 

CornelBejan_0-1681885901184.png

CornelBejan_3-1681886188979.png

 

CornelBejan_2-1681885924945.png

 

Do I need to define the dirac delta (unit impulse) function separately to be able to use (plot) it?

 

Mathcad Prime 8 file attached.

 

 

ACCEPTED SOLUTION

Accepted Solutions
ttokoro
20-Turquoise
(To:Cornel)

Change plot type as below.

image.png

View solution in original post

12 REPLIES 12
-MFra-
21-Topaz II
(To:Cornel)

The Dirac impulse has infinite amplitude and infinitesimal width. You can never make a graph of it. You can make some approximations, for example with a rectangular impulse of amplitude 1/ε and width ε so that the area of the impulse is always unitary.  with ε small as desired.

Cornel
19-Tanzanite
(To:-MFra-)

Which is more correct to use between delta1 and delta2 function implementations?

 

CornelBejan_6-1681891829582.png

 

CornelBejan_7-1681891836854.png

 

CornelBejan_8-1681891848137.png

 

 

 

Cornel
19-Tanzanite
(To:Cornel)

But then...I do not know if I will can evaluate numerically further with this functions defined above.

 

CornelBejan_0-1681892282803.png

 

Which should have the value of 1, right?

CornelBejan_1-1681892321508.png

 

 

Cornel
19-Tanzanite
(To:Cornel)

Is it correct to consider like this?

 

CornelBejan_0-1681895868795.png

CornelBejan_1-1681895874520.png

 

CornelBejan_2-1681895889329.png

CornelBejan_3-1681895896080.png

 

CornelBejan_4-1681895903058.png

CornelBejan_5-1681895909053.png

 

CornelBejan_6-1681895917853.png

CornelBejan_7-1681895924352.png

 

 

 

 

Cornel
19-Tanzanite
(To:Cornel)

@ttokoro  What function do you use for Dirac (unit impulse)?? Or how do you use Dirac function in Mathcad Prime? Can you show some examples?

Cornel
19-Tanzanite
(To:Cornel)

Let's say that I want to plot the fourier transform for cos and sin:

 

CornelBejan_4-1681899108999.png

 

CornelBejan_0-1681899023522.png

So, this graph:

CornelBejan_2-1681899046196.png

 

 

CornelBejan_1-1681899029854.png

And this graph:

CornelBejan_3-1681899057573.png

 

How can I plot these 2 above graphs in Mathcad Prime 8?

 

 

-MFra-
21-Topaz II
(To:Cornel)

The pulses have infinite amplitude and area p, therefore the infinity symbol is placed on the arrow and the area on one side. For example, see figure. this applies to any Dirac impulse (positive or negative).

answer to CornelBjean.jpg

Sometimes the Dirac impulse is confused with the unitary impulse which instead is an impulse of amplitude one. It is represented with a dot, and often with a bar that connects it to the abscissa axis and is used in the theory of digital signal processing (see, for example, the attached file).

ttokoro
20-Turquoise
(To:Cornel)

Change plot type as below.

image.png

-MFra-
21-Topaz II
(To:ttokoro)

It seems to me that you are confusing the unitary impulse with the Dirac impulse.

-MFra-
21-Topaz II
(To:Cornel)

answer to CornelBjean 3.jpg

ttokoro
20-Turquoise
(To:Cornel)

As MFra already say, it is impossible to plot delta(t).
The only we can do is to make delta(t) as already you make above.
I also do same technique to plot the impulse image om the 2D plot.

image.pngimage.pngimage.pngimage.pngimage.pngimage.png

 

-MFra-
21-Topaz II
(To:ttokoro)

The attached pdf file should be comprehensive.

Announcements

Top Tags