Go to the source code of this file.
|
| with (5, 7)(3 |
|
and | % (4, 8) dislocations indicated. Can be used to calculate the defects numbers with % no plotting by setting plotit to 0 % radius defines the distance from 0 |
|
if plotit | triplot (DT, 'color', [0.6 0.6 0.6], 'LineWidth', 2) |
|
% | triplot (DT, 'color', RGB(1,:), 'LineWidth', 3) |
|
% | set (gca, 'Color', [0 0 0]) |
|
| set (gca, 'TickLabelInterpreter', 'latex') |
|
| set (gca, 'DefaultTextInterpreter', 'Latex') set(gca |
|
| xlabel (' $x$(m)', 'Interpreter', 'latex') |
|
| ylabel (' $y$(m)', 'Interpreter', 'latex') % Defect marker size MarkerSize |
|
end if | sqrt (sum([x(ii), y(ii)].^ 2))< radius %% ignore edges if(length(DT.vertexAttachments |
|
end | if (length(DT.vertexAttachments{ii})==5) if plotit plot(x(ii) |
|
end | y (ii) |
|
id | LineWidth () |
|
end | DefCount (ii+1, 5) |
|
elseif | length (DT.vertexAttachments{ii}) |
|
end | DefCount (ii+1, 7) |
|
end | DefCount (ii+1, 3) |
|
end | DefCount (ii+1, 9) |
|
end | DefCount (ii+1, 4) |
|
end | DefCount (ii+1, 8) |
|
◆ %()
◆ DefCount() [1/6]
end DefCount |
( |
ii+ |
1, |
|
|
5 |
|
|
) |
| |
◆ DefCount() [2/6]
end DefCount |
( |
ii+ |
1, |
|
|
7 |
|
|
) |
| |
◆ DefCount() [3/6]
end DefCount |
( |
ii+ |
1, |
|
|
3 |
|
|
) |
| |
◆ DefCount() [4/6]
end DefCount |
( |
ii+ |
1, |
|
|
9 |
|
|
) |
| |
◆ DefCount() [5/6]
end DefCount |
( |
ii+ |
1, |
|
|
4 |
|
|
) |
| |
◆ DefCount() [6/6]
end DefCount |
( |
ii+ |
1, |
|
|
8 |
|
|
) |
| |
◆ if()
end if |
( |
length(DT.vertexAttachments{ii}) |
= =5 | ) |
|
◆ length()
elseif length |
( |
DT.vertexAttachments{ii} |
| ) |
|
Initial value:==9
if plotit
plot(
x(
ii),
y(
ii),
'v',
'MarkerEdgeColor',
'k',
'MarkerSize',
MarkerSize-2,
'MarkerFaceColor',
RGB(5,:),
'LineWidth',1.5)
and for which the defects will be % considered This can be used to avoid defects that arise naturally from % the edge of the triangulation % h is a handle for generated plot % DefCount is a vector of the total number of defects counted for each % type with the index representing the number of connected edges % some useful colours RGB
% Rescale values to be centred on and in meters x
end % idx is for idx is for type for ii
◆ LineWidth()
◆ set() [1/3]
◆ set() [2/3]
◆ set() [3/3]
set |
( |
gca |
, |
|
|
'DefaultTextInterpreter' |
, |
|
|
'Latex' |
|
|
) |
| |
◆ sqrt()
◆ triplot() [1/2]
◆ triplot() [2/2]
◆ with()
◆ xlabel()
◆ y()
◆ ylabel()
◆ DefCount
end end end DefCount = sum(DefCount) |
◆ DT
% Calculate delaunay and setup figure DT = delaunayTriangulation([x y]) |
◆ FontName
◆ FontSize
◆ function
Initial value:
% Calculate delaunay triangulation
def delaunay(dataName, dataType, value)
end % Calculate all n choose k pairings of points
% Indexing needs to % be modified if you wish to use the ordered data sets % Calculate the Voronoi diagram of the resulting data
% Rescale values to be centred on and in meters x
Y Y range of points % radius
Definition at line 1 of file defectTriangulation.m.
◆ ii
Initial value:elseif length(DT.vertexAttachments{ii})
% Rescale values to be centred on and in meters x
end % Loop over vortices and check the number of edges per and place % appropriate marker for jj
end % idx is for idx is for type for ii
Definition at line 52 of file defectTriangulation.m.
Referenced by main().
◆ index
end % Loop over vortices and check the number of edges per index |
◆ jj
Initial value:=1:9
end % Loop over vortices and check the number of edges per and place % appropriate marker for jj
Definition at line 48 of file defectTriangulation.m.
◆ MarkerEdgeColor
◆ MarkerSize
◆ on
◆ RGB
and for which the defects will be % considered This can be used to avoid defects that arise naturally from % the edge of the triangulation % h is a handle for generated plot % DefCount is a vector of the total number of defects counted for each % type with the index representing the number of connected edges % some useful colours RGB |
Initial value:=[0 0.4470 0.7410
0.8500 0.3250 0.0980
0.9290 0.6940 0.1250
0.4940 0.1840 0.5560
0.4660 0.6740 0.1880
0.3010 0.7450 0.9330
0.6350 0.0780 0.1840]
Definition at line 13 of file defectTriangulation.m.
◆ Roman
◆ square
◆ time
◆ triangulation
% Calculate delaunay triangulation |
% Rescale values to be centred on and in meters x =dx*(x-dimSize/2)' |
◆ zero
% Rescale values to be centred on zero |