Borrar filtros
Borrar filtros

Access command window values

1 visualización (últimos 30 días)
90Anonymous
90Anonymous el 2 de En. de 2019
Comentada: 90Anonymous el 3 de En. de 2019
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!

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 2 de En. de 2019
Editada: KALYAN ACHARJYA el 3 de En. de 2019
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 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 3 de En. de 2019
Editada: madhan ravi el 3 de En. de 2019
% 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
90Anonymous
90Anonymous el 3 de En. de 2019
Thank you @KALYAN ACHARJYA!!!

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by