How to sum up a matrix n-times?

I have a matrix A = [1 2 3 4; 5 6 7 8]
How to sum up a matrix up to n times.?

 Accepted Answer

James Tursa
James Tursa on 3 Nov 2012
Edited: James Tursa on 3 Nov 2012
n*A ???
You will need to provide a sample input & output so we can understand what you really want.

3 Comments

A = [1 2 3 4; 5 6 7 8];
summing up the matrix upto n times.
n * A simply multiplies that matrix by a constant know?

Sign in to comment.

More Answers (0)

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!