Messagebox warning in matlab
Show older comments
hello everyone,
I am running this code and getting warning that text is too long for a messagebox. I set breakpoints and at message it is giving different values and showing messagebox without text. What am I doing wrong here?
code is given below;
close all
clc
workspace;
im = imread('lena.bmp')
Image1= im;
im2 = imread('lena2.bmp')
Image2= im2;
NCC = normxcorr2(Image1,Image2);
message = sprintf('The normalized cross correlation is %.2f.', NCC);
msgbox(message);
Accepted Answer
More Answers (1)
Image Analyst
on 25 Sep 2020
Get rid of the message and use imshow():
imshow(NCC, []);
Categories
Find more on Template Matching in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!