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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to plot a periodic signal time domain response via the transfer function

Ackurdeeve
6-Contributor

How to plot a periodic signal time domain response via the transfer function

The problem is shown as this. I want to get the time domain response resp(t) after sig(t) goes through the transfer function H(s).

Ackurdeeve_0-1673344548230.png

In matlab, it is easy to realize the time domain analysis using the code:

num=[3];
den=[1,2,3];
[u,t]=gensig('square',20);
lsim(num,den,u,t);

Ackurdeeve_1-1673344581030.png

 

How can I realize it in Mathcad Prime? Thank you.

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:Ackurdeeve)

You could use the Heaviside step function and the modulo function to define your signal in time domain,

Werner_E_0-1673357045372.png

but unfortunately Primes symbolics is not able to do a laplace transform of this signal.

So one way would be to resort to an approximation by simply using just a finite number of rectangles:

Werner_E_3-1673357977186.png

I am using Prime 6 and the "new" symbolic engine (the only one available starting with Prime 7) is still not able to do a laplace transform of this signal, while the legacy symbolic engine (muPad, only available in Prime 6 and below) is able to find a laplace transform.

But as far as I know the new symbolic engine was improved by PTC and chances are that in newer versions of Prime (7 or 8 ) its capable enough.

Here are the result of the legacy symbolics in Prime 6:

Werner_E_2-1673357469830.png

 

I attach the Prime 6 sheet. If you open it, you will the results given by Prime 6 and the old symbolics. As soon as you recalculate the sheet you will see if your version of Prime with the new symbolic engine is already capable to do its jobs.

View solution in original post

3 REPLIES 3
Werner_E
25-Diamond I
(To:Ackurdeeve)

You could use the Heaviside step function and the modulo function to define your signal in time domain,

Werner_E_0-1673357045372.png

but unfortunately Primes symbolics is not able to do a laplace transform of this signal.

So one way would be to resort to an approximation by simply using just a finite number of rectangles:

Werner_E_3-1673357977186.png

I am using Prime 6 and the "new" symbolic engine (the only one available starting with Prime 7) is still not able to do a laplace transform of this signal, while the legacy symbolic engine (muPad, only available in Prime 6 and below) is able to find a laplace transform.

But as far as I know the new symbolic engine was improved by PTC and chances are that in newer versions of Prime (7 or 8 ) its capable enough.

Here are the result of the legacy symbolics in Prime 6:

Werner_E_2-1673357469830.png

 

I attach the Prime 6 sheet. If you open it, you will the results given by Prime 6 and the old symbolics. As soon as you recalculate the sheet you will see if your version of Prime with the new symbolic engine is already capable to do its jobs.

ttokoro
20-Turquoise
(To:Werner_E)

Prime8 results.

Werner_E
25-Diamond I
(To:ttokoro)

Tnx, as I had it in my mind from some previous posts here in the forum - the problems with fourier- and invfourier transform seem to have been fixed in the current Prime versions.

Announcements

Top Tags