attempt to execute script as function

1 visualización (últimos 30 días)
Terry McGinnis
Terry McGinnis el 13 de Oct. de 2015
Respondida: Walter Roberson el 13 de Oct. de 2015
i am trying to implement edge detection for a given input image using the following code:
im1=edge(d,'sobel');
but am getting the error:
??? Attempt to execute SCRIPT edge as a
function:
C:\Users\Rick\Desktop\edge.m
Error in ==> edgedetect at 11
im1=edge(d,'sobel');
can anyone tell me why this is happening and how can I avoid it...

Respuestas (1)

Walter Roberson
Walter Roberson el 13 de Oct. de 2015
C:\Users\Rick\Desktop\edge.m is your own script, and it is interfering with calling the Mathworks-supplied edge() routine.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by