3 % Write mesh triangles numbers on figure
7 % BackgroundColor :
set triangles numbers background box colors
8 % EdgeColor :
set triangles numbers box edge color
9 % Color :
set triangles numbers colors
10 % FontSize :
set triangles numbers font size
15 % \image html images/
PlotBounds.png
"figure : PlotBounds(Th,\'LineWidth\',2);"
20 p.addRequired(
'Th', @isstruct);
22 p.addParamValue(
'BackgroundColor', [1 1 1], @isnumeric );
23 p.addParamValue(
'FontSize', 10, @isnumeric );
24 p.addParamValue(
'Color', [0 0 0] , @isnumeric );
25 p.addParamValue(
'EdgeColor', [0 0 0] , @isnumeric );
31 PrevHold=SetHoldOn(
true);
32 C=(q(:,me(1,:))+q(:,me(2,:))+q(:,me(3,:)))/3;
33 text(C(1,:),C(2,:),num2str([1:nme]
'), ...
34 'BackgroundColor
',p.Results.BackgroundColor,'Color
',p.Results.Color, ...
35 'FontSize
',p.Results.FontSize,'EdgeColor
', p.Results.EdgeColor, ...
36 'HorizontalAlignment
','center
');