Add two rows in a matrix with new datas
Mostrar comentarios más antiguos
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!
Respuesta aceptada
Más respuestas (1)
E = pascal(10) ;
iwant = [E ; mean(E) ; std(E)]
2 comentarios
Chetan Bhavsar
el 6 de Oct. de 2021
I think he want to insert at 6th and 7th row
Frederike Petersen
el 6 de Oct. de 2021
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!