Hi, i have two m files in order to calculate STATMOMENTS & STATXTURE of an image. [*statmoments.m & statxture.m*]. the statmoments m file is inside the statxture m file. i need to make a pushbotton with text boxes to display my result of the m files in them. so, the question is HOW TO USE THOES M FILES IN PUSH BOTTON ? AND DISPLAY THE RESULTS IN TEXT BOXES ?
thanks for your time and helping !
You can find out how to use GUIDE to build a GUI and put code in so that when you click a button your code executes. You can also use sprintf() and set() to put text onto the GUI in a text control.
% Make a string. theText = sprintf('Your number = %.3f', theNumber); % Now, send it to the text control. set(handles.text1, 'String', theText);