I am working on pattern recognition project and currently in GUI creation phase. I would like to have a pushbutton that is able to perform the following command once the pushbutton is clicked:
a = imread(image_name);
b = rgb2gray(a);
glcm = graycomatrix(b);
glcm (:);
May I know what function should I use to program the pushbutton? Your help is greatly appreciated.
Thank you.
Seems to me like you don’t know how to make callback functions. Here’s how to do it if you’re building your GUI programmatically:
How to do it via GUIDE is similar, and outlined in detail here.