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?
조회 수: 2 (최근 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!