attempt to execute script as function
显示 更早的评论
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 个评论
Naga A
2015-10-13
You can check the following link:
回答(1 个)
Walter Roberson
2015-10-13
0 个投票
C:\Users\Rick\Desktop\edge.m is your own script, and it is interfering with calling the Mathworks-supplied edge() routine.
类别
在 帮助中心 和 File Exchange 中查找有关 Object Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!