iztrans not giving correct result?

10 ビュー (過去 30 日間)
ABTJ
ABTJ 2019 年 5 月 29 日
回答済み: Paul 2025 年 9 月 3 日 1:58
I wrote a program to first find out z transform X of input x and then secondly applied inverse z transform to X to get back original x but when i use the iztrans command , i do not get the original input as shown highlighted in attached phot. My code is as follow
clc
clear all
close all
syms z n
x=n^2*heaviside(n) % original input
X=ztrans(x,z) % z transform of input
x1=iztrans(X,n) % Application of inverse z transform to get back original input

回答 (2 件)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 5 月 29 日
Check here

Paul
Paul 2025 年 9 月 3 日 1:58
syms z n
The fact that the default value for heaviside(0) = 1/2 doesn't matter here, but should be kept in mid in general.
x=n^2*heaviside(n) % original input
x = 
X=ztrans(x,z) % z transform of input
X = 
x1=iztrans(X,n) % Application of inverse z transform to get back original input
x1 = 
expand(x1) % bearing in mind that the output of iztrans is only valid for n >= 0
ans = 

カテゴリ

Help Center および File ExchangeDiscrete Fourier and Cosine Transforms についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by