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 天)
显示 更早的评论
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
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!