MATLAB Examples

This is an example of how to create a simple stem plot in MATLAB®.

Read about the stem function in the MATLAB documentation.

For more examples, go to MATLAB Plot Gallery

% Load amplitude data
load amplitudeData sample amplitude

% Create a stem plot using the stem function
stem(sample, amplitude, 'filled', 'b')

% Adjust the axis limits
axis([0 53 -1.2 1.2])

% Add title and axis labels
title('FIR Polyphase Interpolator')