Adding a row in a matrix.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi guys,
I am currently having a 31x10 matrix. I want to add two rows at the end of this matrix so it becomes 33x10 using a command. ( I know how to do it manually). Is it possible for this to happen?
Thank you
0 commentaires
Réponse acceptée
Fangjun Jiang
le 6 Déc 2012
What do you mean by command or manually? This would do it although it is not a good practice.
a=rand(31,10);
a(33,10)=0;
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!