You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% To draw a rectangle at a given pixel location (center) with any width and
% height rotated at an angle
% Input:
% img - image (gray scale or color)
% center - the pixel location of the center of rectangle 2x1 vector
% width - width of rectangle in pixels
% height - height of rectangle in pixels
% angle - rotation angle of rectangle in degrees
% output:
% hdl = handle to figure
Cite As
Sudarshan (2026). Function to draw a tilted rectangle (https://www.mathworks.com/matlabcentral/fileexchange/36664-function-to-draw-a-tilted-rectangle), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Extract Rotated Patch from Image
General Information
- Version 1.0.0.0 (1.55 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
