The ques is to plot the equation on z-plane: x(n)=-a^n*u(-n-1). But in my code,the ROC is plotting outside the circle which should be inside the circle actually. And the stem of the equation should be start from 0 to - scale .Whats's wrong in code?
3 ビュー (過去 30 日間)
古いコメントを表示
clear all; close all; clc; n=-10:-1; a=2; y =-a.^n.*heaviside(-n-1); figure(1) zplane(y) figure(2) stem(y)
function:function y = heaviside(n) % We assume a vector input
% Our default output value is 0 y = 0 * n; % Now, we find values in n greater than or equal to 0 y(find(n >= 0)) = 1;
1 件のコメント
Star Strider
2016 年 2 月 9 日
I do not see that you are using the z transform to transform your ‘x(n)’ to X(z). You need to do that first.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Detection についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!