Rotate an Image
Open the Simulink® model.
modelname = 'ex_blkrotate.slx';
open_system(modelname)

The model reads image by using the Image From File block. To rotate the input image, use the Rotate block with these parameter values:
Output size -
Same as input imageRotation angle source -
Specify via dialogAngle (radians) -
pi/4Sine value computation method -
Table lookupBackground fill value -
255Interpolation method -
Bilinear
To display the input and the output images, use the Video Viewer block.
Run the model.
sim(modelname);

