sc = 

2 votes
I think M = [a,-b;b,a]^(n-1) is taking a notable amount of time.
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!