No BSD License
-
deg2rad(deg)
-
fractions(A, B, C)
FRACTIONS normalise ternary data
-
simpletri(N);
SIMPLETRI return simple triangulation for square datasets
-
ternaxes(majors)
TERNAXES create ternary axis
-
terncontour(A, B, C, Z, I)
TERNCONTOUR plot contours on ternary phase diagram
-
terncoords(fA, fB, fC)
TERNCOORDS calculate rectangular coordinates of fractions on a ternary plot
-
ternlabel(A, B, C)
TERNLABEL label ternary phase diagram
-
ternpcolor(varargin)
TERNPCOLOR plot pseudo color diagram on ternary axes
-
ternplot(A, B, C, varargin)
TERNPLOT plot ternary phase diagram
-
ternsurf(A, B, C, Z)
TERNSURF plot surface diagram for ternary phase diagram
-
vertexlabel(A, B, C, offset)
VERTEXLABEL label ternary phase diagram at vertices
-
terndemo.m
-
View all files
from
Ternplot
by Carl Sandrock
Plots ternary phase data on a ternary phase diagram.
|
| terncoords(fA, fB, fC) |
% TERNCOORDS calculate rectangular coordinates of fractions on a ternary plot
% [X, Y] = TERNCOORDS(FA, FB) returns the rectangular X and Y coordinates
% for the point with a fraction defined by FA and FB. It is assumed that
% FA and FB are sensible fractions.
%
% [X, Y] = TERNCOORDS(FA, FB, FC) returns the same. FC is assumed to be
% the remainder when subtracting FA and FB from 1.
% Author: Carl Sandrock 20050211
% Modifications
% Modifiers
function [x, y] = terncoords(fA, fB, fC)
if nargin < 3
fC = 1 - (fA + fB);
end
y = fB*sin(deg2rad(60));
x = fA + y*cot(deg2rad(60));
|
|
Contact us at files@mathworks.com