Why zero-padding not visualized in this signal?

Attached the image produced by the simple code below:
t = -10:.1:10-.1;
tz = [zeros(1,50) t zeros(1,50)];
figure
plot(tz,cos(2*pi*tz))
I'd like to know what I can do to edit this way of zero-padding.

 Réponse acceptée

Ezz El-din Abdullah
Ezz El-din Abdullah le 28 Juil 2017

0 votes

Thank you. I have realized that I should zero-pad the y-axis not the x-axis.

Plus de réponses (0)

Catégories

En savoir plus sur Line Plots dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by