필터 지우기
필터 지우기

Error showing that input arguments are double.

조회 수: 1 (최근 30일)
kiruthika r
kiruthika r 2016년 2월 15일
편집: kiruthika r 2016년 2월 16일
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
Walter Roberson
Walter Roberson 2016년 2월 15일
We would need to see your code.
What shows up if you use
which ccc
?
kiruthika r
kiruthika r 2016년 2월 16일
편집: kiruthika r 2016년 2월 16일
ccc is the function file name

댓글을 달려면 로그인하십시오.

답변 (1개)

Star Strider
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
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?
Star Strider
Star Strider 2016년 2월 15일
The im2bw function is your friend here!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by