Add two rows in a matrix with new datas
Ältere Kommentare anzeigen
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!
Akzeptierte Antwort
Weitere Antworten (1)
E = pascal(10) ;
iwant = [E ; mean(E) ; std(E)]
2 Kommentare
Chetan Bhavsar
am 6 Okt. 2021
I think he want to insert at 6th and 7th row
Frederike Petersen
am 6 Okt. 2021
Kategorien
Mehr zu Matrix Indexing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!