focalmech(fm, centerX, centerY, diam, varargin)

版本 1.6.0.0 (5.3 KB) 作者: James Conder
Draw a full moment tensor focal mechanism for an earthquake
972.0 次下载
更新时间 2019/9/10

查看许可证

Function takes 3x3 or vector of 6 independent elements of a moment tensor and plots the appropriate beachball for that earthquake
Example:
% Ryukyu Islands earthquake 4/18/2008 (from globalcmt.org)
M = [4.070 -1.830 -2.240 1.500 1.410 -1.110];
Mw = 5.0;
figure(1)
clf
focalmech(M,0,0,Mw)
axis equal
% Mt. Carmel aftershock 4/18/2008
M = [ -0.754 2.250 -1.490 -0.435 -0.094 0.730 ];
Mw = 4.6;
focalmech(M,5.2,0,Mw)
set(gca,'Visible','off')

引用格式

James Conder (2024). focalmech(fm, centerX, centerY, diam, varargin) (https://www.mathworks.com/matlabcentral/fileexchange/61227-focalmech-fm-centerx-centery-diam-varargin), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.6.0.0

Added option for moment tensor to be in xyz coordinate system (default still rtf).

1.5.2.0

... and another.
Just updated the comments to include page numbers and volume of the manuscript this was published in. No changes to the code itself.

1.5.1.0

Another minor tweak for efficiency.

1.5.0.0

Improved speed by vectorizing main loop. Runs 4-10x faster than previous version.

1.4.0.0

Added optional input for text above beachball. E.g.,
>> focalmech(M,5.2,0, Mw,'text','4/18/2008')

1.3.0.0

Fix a plotting issue that arose when matlab breaks a single contour into multiple pieces.

1.2.0.0

Fixed bug that sometimes reversed color pattern for events with >40% isotropic components.

1.1.0.0

Rewrote the portion to fill the beachballs that should behave for older versions as well as the current version of MatLab (Grzegorz's comment).

1.0.0.0