update visualization
This commit is contained in:
parent
bd4477f062
commit
a04763e7bc
2 changed files with 2933 additions and 2925 deletions
5848
mgrid_2/uv.txt
5848
mgrid_2/uv.txt
File diff suppressed because it is too large
Load diff
|
|
@ -15,6 +15,14 @@ fname = 'uv.txt';
|
|||
|
||||
[xc,ia,v] = ascii_read_meshvector(fname);
|
||||
|
||||
h = trisurf(ia, xc(:,1), xc(:,2), v);
|
||||
%h = trisurf(ia, xc(:,1), xc(:,2), v);
|
||||
|
||||
figure;
|
||||
patch('Faces', ia, 'Vertices', xc, 'FaceVertexCData', v, ...
|
||||
'FaceColor', 'interp', 'EdgeColor', 'k');
|
||||
axis equal tight;
|
||||
colorbar;
|
||||
colormap(jet);
|
||||
title('Heat distribution');
|
||||
|
||||
waitfor(h) % wait for closing the figure
|
||||
Loading…
Add table
Add a link
Reference in a new issue