Why zero-padding not visualized in this signal?

2 views (last 30 days)
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.

Accepted Answer

Ezz El-din Abdullah
Ezz El-din Abdullah on 28 Jul 2017
Thank you. I have realized that I should zero-pad the y-axis not the x-axis.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!