rot90
general · scripts/general/rot90.m
- :
B = rot90 (A) ¶
- :
B = rot90 (A, k) ¶
Rotate array A by 90 degrees counterclockwise k times
in the plane of the first two dimensions.
k defaults to 1. For N-D arrays, pages beyond the first two
dimensions are rotated independently (MATLAB R2026a behaviour).