attempt to execute script as function
Show older comments
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...
1 Comment
Naga A
on 13 Oct 2015
You can check the following link:
Answers (1)
Walter Roberson
on 13 Oct 2015
0 votes
C:\Users\Rick\Desktop\edge.m is your own script, and it is interfering with calling the Mathworks-supplied edge() routine.
Categories
Find more on Object Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!