Error showing that input arguments are double.
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Star Strider
2016 年 2 月 15 日
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 件のコメント
Star Strider
2016 年 2 月 15 日
kiruthika r’s ‘Answer’ moved here:
how to convert an input image with input argument type unit8 to binary image?
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!