mixYxy

The mixYxy function calculates the resulting chromaticity coordinates from n mixed inputs.

Usage:

[xmix,ymix] = mixYxy(Y,x,y)

Where:

ParameterDescription
xmix & ymixReturn the resulting mixed chromaticity coordinates x and y.
YSpecifies the photometric value Y, vector.
xSpecifies the CIE 1931 chromaticity coordinate x, vector.
ySpecifies the CIE 1931 chromaticity coordinate y, vector.

Examples

Mix two illuminances with different chromatic coordinates:

E = [100 300];
x = [0.3 0.4];
y = [0.4 0.3];
[xmix,ymix] = mixYxy(E,x,y)

Result:

xmix = 0.3800
ymix = 0.3200

Mix several illuminances with different chromatic coordinates:

E = [100:100:1000];
x = [0.3:0.01:0.39];
y = [0.4:-0.01:0.31];
[xmix,ymix] = mixYxy(E,x,y)

Result:

xmix = 0.3617
ymix = 0.3383

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.