I am using Matlab GUIDE to control my application. I load two m files using Matlab GUI, calculate Cross-correlation and then display the results of correlation as shown.
%read Template
Temp=Exp0(:,2);
[rowletter, colletter]=size(Temp);
sprintf('the size of template is %d x %d',rowletter, colletter);
%read Target
recvdata=AA0;
[rowgol, colgol]=size(recvdata);
sprintf('the size of received data is %d x %d',rowgol, colgol);
%find Cross corelation
cc=normxcorr2(Temp, recvdata);
[max_cc,imax]=max(abs(cc(:)));
sprintf('The highest correlation valus is %f.',max_cc)
Now I want the following two things.
- Information printed in my command window to be available in my GUI using the Text Box etc.
- Is there any alert which can be raised if the correlation is 1.0000.
How can I do these?.