How do you plot a discrete time signal?
A discrete time signal just means sampling your continuous signal at discrete time intervals. The simplest way this can be done is by increasing your step in n. n = [-5:0.25:5]; y = 5*cos(pi*(n/2)-(pi/2));
How to plot a discrete signal in Matlab?
stem( X , Y ) plots the data sequence, Y , at values specified by X . The X and Y inputs must be vectors or matrices of the same size. Additionally, X can be a row or column vector and Y must be a matrix with length(X) rows.