⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 spec2d_cplot.m

📁 Spectral Element Method for wave propagation and rupture dynamics.
💻 M
字号:
% 2D Amplification Ratio from SPECFEM data% H. Rendon and J.P. Ampuero - Set. 2001 xscal = 0.001  ;% scaling x-axisascal = 0.5     ;% amplitude scalingxtitle = 'Location (km)';ytitle = 'Frequency (Hz)';plottitle = 'AR at Los Palos Grandes, X component, P wave, i=60 N';tsize = 18; % Font size for titles and axis labelsdisp('Plots spectra map');datapath = input('Enter data path : ','s'); sourcepath = pwd;cd(datapath); load specf.dat; load xsismos.dat; load specx.dat; cd(sourcepath);specx = specx*ascal; xsismos = xsismos*xscal ;nf = size(specf,1);f1 = 5  ; % first frequency to be plottedf2 = nf ; % last frequency to be plottedcontourf(xsismos(:,1),specf(f1:f2),specx(:,f1:f2)'); colorbar; xlabel(xtitle,'FontSize',tsize);ylabel(ytitle,'FontSize',tsize);title(plottitle,'FontSize',tsize);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -