Why zero-padding not visualized in this signal?

2 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by