Access command window values
1 回表示 (過去 30 日間)
古いコメントを表示
I am comparing a set of images using a loop.
If the comparision works or not, there are messages to print. After the comparision done, how can i get that count of the messages? I tried to use count, but it is not working for me.
Thanks!
0 件のコメント
採用された回答
KALYAN ACHARJYA
2019 年 1 月 2 日
編集済み: KALYAN ACHARJYA
2019 年 1 月 3 日
As per your question seems easy, why not use the count=count+1, instead of message print .
% Say i=input image and r is processed image
count_match=0; count_not_match=0;
if i==r
count_match=count_match+1;
else
count_not_match=count_not_match+1;
end
3 件のコメント
KALYAN ACHARJYA
2019 年 1 月 3 日
編集済み: madhan ravi
2019 年 1 月 3 日
% Say i=input image and r is processed image
count_match=0; count_not_match=0;
if i==r
disp('message_print');
count_match=count_match+1;
else
disp('message_print');
count_not_match=count_not_match+1;
end
From the above code you can access the number of print messages , just disp/ call/ access the value of count_match and count_not_match
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!