OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

mrotate90

Contents

Menu Information

Rotate90

Brief Information

Rotates the matrix 90/180 degrees

Command Line Usage

1. mrotate90

2. mrotate90 degree:=cw90

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Input Matrix im

Input

MatrixObject

<active>

Specifies the input matrix.

Rotate Degree degree

Input

int

ccw90

Specifies the degree and direction for the matrix rotation.
Option list:

  • ccw90:CCW90
    Rotates the matrix 90 degrees counter-clockwize.
  • ccw180:CCW180
    Rotates the matrix 180 degrees counter-clockwize.
  • cw90:CW90
    Rotates the matrix 90 degrees clockwize.
Output Matrix om

Output

MatrixObject

<input>

Specifies the output matrix.

See the syntax here.

Description

With this X-Function, you can rotate a matrix 90/180 degrees clockwise or counterclockwise.

For a m*n matrix A as follows:

Image:mrotate90_help_English_files_image002.gif

CCW90 rotation can be expressed as:

Image:mrotate90_help_English_files_image004.gif

CCW180 rotation can be expressed as:

Image:mrotate90_help_English_files_image006.gif

CW90 rotation can be expressed as:

Image:mrotate90_help_English_files_image008.gif

Related X-Functions

mdim, mexpand, mproperty, mreplace, mflip, msetvalue, mshrink, mtranspose