Info

此问题已关闭。 请重新打开它进行编辑或回答。

need syntax

2 次查看(过去 30 天)
shriya
shriya 2012-3-19
关闭: MATLAB Answer Bot 2021-8-20
need syntax for zero padding

回答(1 个)

Wayne King
Wayne King 2012-3-19
One way
x = ones(10,1);
x = [x ; zeros(10,1)];
Another way:
x = ones(10,1);
y = zeros(10,1);
x = vertcat(x,y);

此问题已关闭。

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by