Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

i want to make a function ''user(A,B,C)'' in which A is an image , B is [X,Y] / [R] where R, X,Y are numerical values and C is a string ? please help me out !

조회 수: 1 (최근 30일)
Amir
Amir 2015년 3월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to implement if condition on B and C to obtain outputs but getting an error of "Undefined function for input arguments of type uint8 " ?? for e.g
if B == [X,Y] && C== 'TL'
calculations
end
if B == [R] && C == 'RO'
calculations
end
  댓글 수: 1
Guillaume
Guillaume 2015년 3월 11일
The portion of code that you've shown is unlikely to result in an 'Undefined function' error message. Post the bit of code that causes the error and the entirety of the error message (it should tell you which function is undefined).
Typical cause for this error is that the function you're calling is not on the matlab path.
Finally use strcmp for string comparison rather than == (which would result in an error if the two strings have different length).

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by