plot2dsnapshot.m
来自「spectral element method」· M 代码 · 共 21 行
M
21 行
% Plot2dSnapshot(x,y,v,indx,vsat)%% INPUT x,y 2D coordinates of GLL nodes (global vector)% v field to be plotted (global vector)% indx cell info, output from Init2dSnapshot% vsat color scale [-vsat vsat]% OUTPUT h patch handle %function h=Plot2dSnapshot(x,y,v,indx,vsat)clfset(gca,'DefaultPatchEdgeColor','none');h=patch('Vertices',[x(:) y(:)],'Faces',indx,'FaceVertexCData',v(:),'FaceColor','interp');axis equal axis tighttitle('SEM2D snapshot')xlabel('X')ylabel('Y')if exist('vsat','var'), set(gca,'CLim',vsat); endcolorbar('vert')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?