Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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 visualización (últimos 30 días)
Amir
Amir el 11 de Mzo. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentario
Guillaume
Guillaume el 11 de Mzo. de 2015
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).

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by