Effacer les filtres
Effacer les filtres

How to append ones or zeros

4 vues (au cours des 30 derniers jours)
Prashant Funde
Prashant Funde le 1 Fév 2017
Réponse apportée : KSSV le 1 Fév 2017
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.

Réponses (1)

KSSV
KSSV le 1 Fév 2017
A = rand(527,1) ;
N = 530 ; % 535
iwant = [A ; zeros(N-length(A),1)] ;

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by