Hello.I want to solve the problem of extracting the z-transform for f(t)= sin ωt u(t), but I don't get an answer.Please help me.

 채택된 답변

Chunru
Chunru 2022년 10월 25일

0 개 추천

syms n omega f(n)
f(n) = sin(omega*n)
f(n) = 
ztrans(f(n))
ans = 

댓글 수: 5

Star Strider
Star Strider 2022년 10월 25일
It apparently has to be in the form of . I could not get there when I tried it.
Also, the trigonometric argument has to be .
If you want to include sampling time T (which is assumed to be 1 by default), you can add it into the function.
If you want to be in the form of z^-1, you just need to devide z^2 from both numerator and denominator.
syms n omega f(n) T
f(n) = sin(omega*T*n)
f(n) = 
ztrans(f(n))
ans = 
Aysel Alimirzayeva
Aysel Alimirzayeva 2022년 10월 25일
@Chunru I have a question. I will be happy if you answer.In the example, we need to find the z transform of the function f(t)=sinwt u(t). Why didn't we take u(t) into account when we wrote the code?
Chunru
Chunru 2022년 10월 25일
If you "doc ztrans", you will find that matlab performs z-transform for n=0, 1, ... by its definition
Aysel Alimirzayeva
Aysel Alimirzayeva 2022년 10월 26일
@Chunru Thank you very much

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2022년 10월 24일

댓글:

2022년 10월 26일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by