MESH toolbox
0.1
Matlab/Octave mesh utils
Main Page
Related Pages
Modules
Files
File List
File Members
All
Files
Functions
Groups
Pages
PlotMesh.m
Go to the documentation of this file.
1
function
PlotMesh
(varargin)
2
%
function
PlotMesh
(varargin)
3
% Plot mesh
4
%
5
% parameters:
6
% Th : mesh structure
7
% Color :
set
color mesh lines
8
% LineWidth :
set
lines width
9
%
10
% Example:
11
% @verbatim
12
% Th=
GetMeshOpt
(
'mesh/disque4-1-20.msh'
);
13
%
PlotMesh
(Th,
'LineWidth'
,1.0)
@end
verbatim
14
% \image html images/
PlotMesh
.jpg
"figure : PlotMesh(Th,\'LineWidth\',1.0)"
15
% \image latex images/
PlotMesh
.eps
"My application"
width=10cm
16
p = inputParser;
17
p.addRequired(
'Th'
, @isstruct);
18
%
19
p.addParamValue(
'Color'
, [0 0 1], @isnumeric );
20
p.addParamValue(
'LineWidth'
, 0.5 , @isnumeric );
21
22
p.parse(varargin{:});
23
Th=p.Results.Th;
24
PrevHold=SetHoldOn(
true
);
25
triplot(Th.me
',Th.q(1,:),Th.q(2,:),'
Color
',p.Results.Color,'
LineWidth
',p.Results.LineWidth);
26
RestoreHold(PrevHold)
27
axis off
28
axis equal
graphic
PlotMesh.m
Generated on Tue Jan 8 2013 15:27:54 for MESH toolbox by
1.8.2