file = fopen ( 'gitter.txt', 'r' ); npt = cell2mat ( textscan ( file, '%d,%d', 1 ) ); np = npt ( 1 ); nt = npt ( 2 ); TX = cell2mat ( textscan ( file, '%f', np, 'delimiter', ',' ) ); TY = cell2mat ( textscan ( file, '%f', np, 'delimiter', ',' ) ); TH = cell2mat ( textscan ( file, '%f', np, 'delimiter', ',' ) ); TT = cell2mat ( textscan ( file, '%d,%d,%d', nt ) ); colormap ( winter ); h1 = subplot ( 121 ); trisurf ( TT, TX, TY, TH ); view ( 2 ); axis ( h1, 'square' ); h2 = subplot ( 122 ); trisurf ( TT, TX, TY, TH ); shading interp; lighting phong; light; view ( -40, 80 ); axis ( h2, 'square' );