Draw a rectangle

버전 1.1.0.0 (1.62 KB) 작성자: Rasoul Mojtahedzadeh
This is a function to draw a rectangle given the center, width and height, and the rotation angle.
다운로드 수: 1.3K
업데이트 날짜: 2011/11/15

라이선스 보기

H = DRAWRECTANGLE(PARAM,STYLE)
This function draws a rectangle with the given parameters:
- inputs:
param................... 1x5 array
- param = [a, b, w, h, theta]
- (a,b): the center of the rectangle
- (w,h): width and height of the rectangle > 0
- theta: the rotation angle of the rectangle
style................... string
- plot style string
- output:
h....................... plot handler

Usage Examples,

DrawRectangle([0 0 1 1 0]);
DrawRectangle([-1,2,3,5,3.1415/6],'r-');
h = DrawRectangle([0,1,2,4,3.1415/3],'--');

Rasoul Mojtahedzadeh (mojtahedzadeh _a_ gmail com)
Version 1.00
November, 2011

인용 양식

Rasoul Mojtahedzadeh (2026). Draw a rectangle (https://kr.mathworks.com/matlabcentral/fileexchange/33767-draw-a-rectangle), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2011a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Polar Plots에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.1.0.0

- The problem with calculating the center of the rectangle has been solved.

1.0.0.0