iztrans not giving correct result?

10 visualizaciones (últimos 30 días)
ABTJ
ABTJ el 29 de Mayo de 2019
Respondida: Paul el 3 de Sept. de 2025 a las 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

Respuestas (2)

KALYAN ACHARJYA
KALYAN ACHARJYA el 29 de Mayo de 2019
Check here

Paul
Paul el 3 de Sept. de 2025 a las 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 = 

Productos


Versión

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by