Error showing that input arguments are double.

I have written a program to compare two binary images. Both inputs are logical. But when I run the program it says "Undefined function 'ccc' for input arguments of type 'double". What does it mean and what I have to do? Please help me.

2 Commenti

We would need to see your code.
What shows up if you use
which ccc
?
kiruthika r
kiruthika r il 16 Feb 2016
Modificato: kiruthika r il 16 Feb 2016
ccc is the function file name

Accedi per commentare.

Risposte (1)

MATLAB converts logical variables to real doubles if you use them to calculate:
a = true;
b = true;
c = a + b
c =
2
class_a = class(a)
class_b = class(b)
class_c = class(c)
class_a =
logical
class_b =
logical
class_c =
double

2 Commenti

kiruthika r’s ‘Answer’ moved here:
how to convert an input image with input argument type unit8 to binary image?
The im2bw function is your friend here!

Accedi per commentare.

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Richiesto:

il 15 Feb 2016

Modificato:

il 16 Feb 2016

Community Treasure Hunt

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

Start Hunting!

Translated by