To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016
I'm trying to plot an rgb matrix onto co-ordinates defined by Seed0Orange and Seed0Blue. However whilst the results work for i=1 when I try and cycle through the matrix I get "Error using plot Color value contains NaN, or element out of range 0.0 <= value <= 1.0". However there are no elements outside of the range or any NaNs. Any help would be much appreciated
for i = 1:5000 plot(Seed0Orange(1,i), Seed0Blue(1,i), 'kx','MarkerEdgeColor',[datanew(i,1) datanew(i,2) datanew(i,3)],... 'MarkerFaceColor',[datanew(i,1) datanew(i,2) datanew(i,3)]); end
No products are associated with this question.
(Regarding dpb's comment) You can find out which ones are above or below via the second return argument of min() or max(). Why not just clip
before you enter the for loop and pass it into plot()?
I know I asked for your data before (above in the comments) but I haven't seen it yet, or any code as to how you created it. How was your colormap, datanew, generated?