Add two rows in a matrix with new datas
Show older comments
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!
Accepted Answer
More Answers (1)
E = pascal(10) ;
iwant = [E ; mean(E) ; std(E)]
2 Comments
Chetan Bhavsar
on 6 Oct 2021
I think he want to insert at 6th and 7th row
Frederike Petersen
on 6 Oct 2021
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!