mpwr(x,p) is equivalent to x^p, but more efficient for scalar, integer p. (x is assumed to be square, non-sparse.)
Kenneth Johnson (2023). matrix power (https://www.mathworks.com/matlabcentral/fileexchange/44575-matrix-power), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: mpower2 - A faster matrix power function.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!