need syntax

need syntax for zero padding

답변 (1개)

Wayne King
Wayne King 2012년 3월 19일

0 개 추천

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);

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

질문:

2012년 3월 19일

마감:

2021년 8월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by