plot2dsnapshot.m
来自「Spectral Element Method for wave propaga」· M 代码 · 共 20 行
M
20 行
% Plot2dSnapshot(field,coord,indx,vsat)%% INPUT coord 2D coordinates of GLL nodes (npoin,2)% field field data to be plotted% indx cell info, output from Init2dSnapshot% vsat color scale [min max], default none%% OUTPUT h patch handle %function h=Plot2dSnapshot(field,coord,indx,vsat)set(gca,'DefaultPatchEdgeColor','none');h=patch('Vertices',coord,'Faces',indx,'FaceVertexCData',field(:),'FaceColor','interp');axis equal tighttitle('SEM2D snapshot')xlabel('X')ylabel('Z')if exist('vsat','var'), if ~isempty(vsat), set(gca,'CLim',vsat); end, endcolorbar('vert')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?