How to pad zeros to an array?
43 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
I have an array of data of size 5.I have to pad zeros to set the size as 10.How to add zeros of size 5.Help me please...
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 30 Mai 2013
Modifié(e) : Azzi Abdelmalek
le 30 Mai 2013
A=[1 2 3 4 5]
A=[A zeros(1,5)]
%or
A(end+1:end+5)=0
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical 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!