attempt to execute script as function
조회 수: 1 (최근 30일)
이전 댓글 표시
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개)
Walter Roberson
2015년 10월 13일
C:\Users\Rick\Desktop\edge.m is your own script, and it is interfering with calling the Mathworks-supplied edge() routine.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!