1 function [ xc, ia, v ] = ascii_read_meshvector( fname )
3 % Loads the 2D triangular mesh (coordinates, vertex
connectivity)
4 % together with values on its vertices from an ASCII file.
5 % Matlab indexing is stored (starts with 1).
7 % The input file format is compatible
8 % with Mesh_2d_3_matlab:Write_ascii_matlab(..) in jacobi_oo_stl/geom.
h
11 % IN: fname - filename
12 % OUT:
xc - coordinates
21 nn = dlmread(fname,DELIMETER,[0 0 0 3]); %%
row_1,
col_1,
row_2, col_2 in C indexing!!!