Demonstration of Z-transform and ROC in time series analysis
Version 1.0.0 (273 KB) by
Dharani
Exploration of z - transform and region of convergence in the both continuous and discrete time series to apply in real world applications.
Objectives:
•To demonstrate the computation of Z-transform for both continuous and discrete signals.
•To illustrate the concept of the region of convergence and its implications in signal analysis.
•To provide practical examples and applications showcasing the importance of Z-transform and ROC in time series analysis.
%continuous time series
syms t;
x = exp(-2*t) * (heaviside(t) - heaviside(t-1));
Ts = 0.1;
n = 0:20;
xn = subs(x, t, n*Ts);
syms z;
X = ztrans(xn, z);
disp('Z-transform of x[n]:');
disp(X);
roc = abs(z) > exp(2*Ts);
figure;
fimplicit(roc, 'b', 'LineWidth', 1.5);
xlabel('Re(z)');
ylabel('Im(z)');
title('Region of Convergence in continuous time (ROC) for Z-transform');
disp(['Region of Convergence in continuous time (ROC): |z| > ', num2str(exp(2*Ts))]);
%discrete time series
n=0:20;
x=0.5.^n;
syms z;
X = ztrans(x, z);
disp('Z-transform of x[n]:');
disp(X);
roc = abs(z) > 0.5;
figure;
fimplicit(roc, 'b', 'LineWidth', 1.5);
xlabel('Re(z)');
ylabel('Im(z)');
title('Region of Convergence in discrete time (ROC) for Z-transform');
disp('Region of Convergence in discrete time (ROC): |z| > 0.5');
Cite As
Dharani (2024). Demonstration of Z-transform and ROC in time series analysis (https://www.mathworks.com/matlabcentral/fileexchange/163111-demonstration-of-z-transform-and-roc-in-time-series-analysis), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: z-transform
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |