image thumbnail

MATLAB Plot Gallery - Stem Plot (1)

by

 

24 Feb 2012 (Updated )

Create a simple stem plot

Stem_Plot_1

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
figure
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')
xlabel('Samples')
ylabel('Amplitude')

Contact us