필터 지우기
필터 지우기

How to append ones or zeros

조회 수: 4 (최근 30일)
Prashant Funde
Prashant Funde 2017년 2월 1일
답변: KSSV 2017년 2월 1일
I have array of 527 and 532 bits. I want to do some processing on bits but for that processing it is mandatory that array have elements in the multiple of 530 or 535. How can i append those necessary bits in MATLAB code.

답변 (1개)

KSSV
KSSV 2017년 2월 1일
A = rand(527,1) ;
N = 530 ; % 535
iwant = [A ; zeros(N-length(A),1)] ;

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by