To plot a discrete signal in MATLAB, you can use the stem
function which displays data points as markers on the stem of a graph. Here is an example:
main.m209 chars11 lines
This will display a plot of the discrete signal with the sample index on the x-axis and the signal amplitude on the y-axis. You can customize the plot by changing the x and y label or the title.
gistlibby LogSnag