As you can see, the confusion level of automagically created variables is very high. I strongly recommend to avoid such tricks, if you are not an advanced programmer and know exactly what you are doing. If you are a beginner, such Voodoo techniques will waste your time. Faster, nicer, ...
I took a look at your question again. ginput gives you the x and y in respect to x and y axes, for images, ginput returns the pixel number (pixel 0 0 is on the top and left of the image) so it does not provide any color info on it's own.%...
to individually or batch process one or more images. The user can optionally apply a mask (region of interest) to the image so that only the area within the mask will be analyzed. The results are optionally sent to Excel. In this demo ...
which size of image is suitable for this code. When I used size of image 800*600 my program take long time to run this code. ... clear all clc [filename, pathname] = uigetfile({'*.*'},'Browse'); name=[pathname,filename]; rgb = imread(name)...