Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 1841. Rotate Matrix Both Direction (45 Degree)

Created by Ashish

Matrix (3x3 only) rotation:

3 inputs: x matrix, n times and m option.

output: y matrix with n x 45 degree rotation. m=1 for clockwise & m=2 for counterclockwise.

Problem Group

Solution Statistics

19 correct solutions 11 incorrect solutions
Last solution submitted on Feb 17, 2016

Problem Comments