my program to convert from RGB to XYZ and draw those pixels on my 3D space is not working, when I run it, no pixels appear at all, can you give me the direction of the resolution?, thanks!
my code
rgb = min(abs(randn(1,3).*[68 200 200] + [0 0 0]),1);
scatter3(xyz(:,1),xyz(:,3),xyz(:,2),100,rgb,'.');
axis([0 255 0 255 0 255]);
set(gca,'color','w','gridcolor','w','gridalpha',0.3)
set(gca,'projection','perspective');