Add two rows in a matrix with new datas
Afficher commentaires plus anciens
I have a pascal triangle matrix pascal(10) = E. Now I have to calculate the mean and the standard deviation of each column of E. The results have to insert as row 6&7 in Matrix E. (At the end the matrix should have [12 10]).
Thanks for your advices!
Réponse acceptée
Plus de réponses (1)
E = pascal(10) ;
iwant = [E ; mean(E) ; std(E)]
2 commentaires
Chetan Bhavsar
le 6 Oct 2021
I think he want to insert at 6th and 7th row
Frederike Petersen
le 6 Oct 2021
Catégories
En savoir plus sur Matrix Indexing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!