error in my code
1 view (last 30 days)
Show older comments
thelong le on 11 Jun 2021
Commented: KSSV on 11 Jun 2021
my code is having problem, when running the program it ends up as a line of colored points ?, why is it not distributed in space? how to be able to look at its spatial structure, someone explain to me, many thanks!
% nhap gia tri XYZ
rgb = [ str2num(X) str2num(Y) str2num(Z) ];
xyz = rgb2xyz(rgb);
% vẽ điểm ảnh
view(3); grid on;
axis([0 1 0 1.1 0 1]);
and the result when i change the value of X,Y,Z
KSSV on 11 Jun 2021
It is because your points are aligned in a line. The plot shows up what you give.
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!