Scilab Function
Last update : 1/11/2005

rot90 - Rotate matrix 90 degrees

Calling Sequence

B = rot90(A,k)

Parameters

Description

ROT90(A) is the 90 degree counterclockwise rotation of matrix A.

ROT90(A,K) is the K*90 degree rotation of A, K = +-1,+-2,...

This function has been imported from MatLab

Examples

A=[1,2,3;4,5,6];
B=rot90(A)
C=rot90(A,2)
D=rot90(A,3)
F=rot90(A,-1)
// End of example rot90

See Also

randzone ,  

Authors

Dr. Andreas Geissler geisslea@web.de