image thumbnail

MATLAB Plot Gallery - Stem Plot (1)

by

 

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.

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