文件
em3d-mt/bin/RMT3d/save_mesh_mat2dat.m
刘明宏 1e31390ba6 code
Signed-off-by: 刘明宏 <liuminghong@mail.sdu.edu.cn>
2025-04-29 07:11:41 +00:00

18 行
594 B
Matlab

function save_mesh_mat2dat(mesh)
%save_mesh_mat2dat .mat to .dat
% 此处显示详细说明
entity = double(mesh.entity);
try elem2node = double(mesh.t); end
try elem2node = double(mesh.elem2node); end
try node2coord = double(mesh.p); end
try node2coord = double(mesh.node2coord); end
save('mesh.entity.dat', 'entity', '-ascii');
save('mesh.elem2node.dat', 'elem2node', '-ascii');
save('mesh.node2coord.dat', 'node2coord', '-ascii');
% mesh.entity =load('mesh.entity.dat');
% mesh.elem2node =load('mesh.elem2node.dat');
% mesh.node2coord =load('mesh.node2coord.dat');