Hi!
I want to compare the color of a button with another color. I wrote the code below:
c = get(handles.showColor, 'BackgroundColor'); color = 'green'; st = strcmp(c,color); if(st == 1) axes(handles.axes1); img = imread('image\electronique.png'); image(img); axis off; end;
is it correct? Can i compare c and color?
Best Answer