mesh_points.m

来自「hodge decomposition for 2D vector fields」· M 代码 · 共 17 行

M
17
字号

function xy=mesh_points(mv_x,mv_y) 
%% generate the Node Table 
%% mv_x: horizontal coordinates of the grids 
%% mv_y: vertical coordinates of the grids 
%% xy: the coordinates of all nodes 
sz=size(mv_x); 
MN=prod(sz); 
xx=reshape(mv_x,MN,1); 
yy=reshape(mv_y,MN,1); 
xy=zeros(MN,2);  
for i=1:MN 
xy(i,1)=mv_y(i); 
xy(i,2)=mv_x(i); 
end; 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

⌨️ 快捷键说明

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