Geoscience Reference
In-Depth Information
'Box','On');
hold on
line(5.2,3.5,...
'Marker','o','MarkerEdgeColor','b',...
'MarkerSize',8,'MarkerFaceColor','b')
f1 = @(x1,x2) K1 + L1(1)*x1 + L1(2)*x2;
h3 = ezplot(f1,[-5 12 0 5]);
set(h3,'Color','k')
f2 = @(x1,x2) K2 + L2(1)*x1 + L2(2)*x2;
h3 = ezplot(f2,[-5 10 0 5]);
set(h3,'Color','k')
text(0,2,'Granite 1','Color','r')
text(-0.5,4,'Granite 2','Color','b')
text(10,4.5,'Granite 3','Color','m')
title('Discriminant Analysis')
hold off
h e function ClassificationDiscriminant.fit also allows a quadratic
classii er to be i tted instead of the linear classii er used in the example with
three types of granite (MathWorks 2014b).
Fig. 9.6 Result of linear discriminant analysis, separating three types of granites (1, 2 and 3).
Search WWH ::




Custom Search