MATLAB Earthquake

버전 1.2.0.0 (2.33 KB) 작성자: Husam Aldahiyat
Randomly Vibrates Graphical Objects
다운로드 수: 3.3K
업데이트 날짜: 2009/1/31

라이선스 보기

mquake(h,int,dur,op1,op2) Randomly vibrates graphical objects, where:

h: Handle of required object(s) (scalar or vector)

int: Intensity of vibration (scalar)

dur: Duration of vibration in seconds (estimate, scalar)

op1: 1 -> Object returns to starting position at the end
0 -> Object ends up where earthquake lands it

op2: 1 -> Confine object to screen limits
0 -> Vibrate freely

Setting OP2 to 1 will confine the vibrating object to its container's limits. It confines a figure to the screen limits, and confines axes and uicontrols to the limits of the figures containing them.

+ Example:
% Vibrate figure

t=0:.1:4;
y=cos(t);
plot(t,y)
mquake(gcf,2,5,0,1)

인용 양식

Husam Aldahiyat (2024). MATLAB Earthquake (https://www.mathworks.com/matlabcentral/fileexchange/22816-matlab-earthquake), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Added additional option.

1.1.0.0

Added improvements to the code, as well as support for handles of multiple object.

1.0.0.0