what happened to the folowing code?

1 回表示 (過去 30 日間)
romasha
romasha 2014 年 2 月 10 日
コメント済み: romasha 2014 年 2 月 11 日
when i launch following code it displays axes instead of Text.. kindly sort this out
%MATCHING(HAMMING DISTANCE)
storedStructure = load('FeaExt.mat');
template = storedStructure.template;
storedStructure = load('vari.mat');
No_of_images = storedStructure.No_of_images;
for fr=1:No_of_images-1
filename2 = sprintf('FeatureExtrctd_image%d.bmp', fr);
recoverimg=imread(filename2);
hd = gethammingdistance(template, recoverimg, 2);
hd = round(hd*(10 ^ 2))/(10 ^ 2);
if(hd>=0 && hd<=0.4)
text(-1500+fr,300,sprintf('Iris recognition SUCCESSFUL –---You may proceed'));
% xlswrite(path, {hd 'Success'}, 1, sprintf('G%d', b-1));
else
text(-1400+fr,300,sprintf('ERROR: Iris recognition FAILD'));
% xlswrite(path, {hd 'Failure'}, 1, sprintf('G%d', b-1));
end
end
  2 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2014 年 2 月 10 日
When this happen? what line?
romasha
romasha 2014 年 2 月 10 日
when i run the code and i want text line to be written but GUI shows an axes

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2014 年 2 月 10 日
text() always has to appear within an axes. You can set the borders of the axes to not display by using
axes off
but that will not cause it to not be visible.
If you want text outside of any axes, then you need to use uicontrol('style', 'text')
  1 件のコメント
romasha
romasha 2014 年 2 月 11 日
thanx

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by