The mixYxy function calculates the resulting chromaticity coordinates from n mixed inputs.
Usage:
[xmix,ymix] = mixYxy(Y,x,y)
Where:
Parameter | Description |
xmix & ymix | Return the resulting mixed chromaticity coordinates x and y. |
Y | Specifies the photometric value Y, vector. |
x | Specifies the CIE 1931 chromaticity coordinate x, vector. |
y | Specifies 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