frudawski

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 comment

* I accept the use of cookies as well as the terms in the privacy policy. I accept that data provided by me is processed and saved. I know and accept that comments may be saved and published after review.