Clear Filters
Clear Filters

Info

This question is closed. Reopen it to edit or answer.

need syntax

1 view (last 30 days)
shriya
shriya on 19 Mar 2012
Closed: MATLAB Answer Bot on 20 Aug 2021
need syntax for zero padding

Answers (1)

Wayne King
Wayne King on 19 Mar 2012
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);

This question is closed.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!