Error: this statement is incomplete

2 views (last 30 days)
img=imread('circulos.jpg');
imshow(img);
d = imdistline;
delete(d)
imgbn=rgb2gray(img);
imshow(imgbn);
[centers,radii] = imfindcircles(imgbn,[30 70],'ObjectPolarity','dark',...'Sensitivity',0.9)

Accepted Answer

Walter Roberson
Walter Roberson on 15 Nov 2019
The ... immediately marks end of line. Anything after it is a comment. So you are missing the )
You should split into two lines:
[centers,radii] = imfindcircles(imgbn,[30 70],'ObjectPolarity','dark',...
'Sensitivity',0.9);

More Answers (0)

Categories

Find more on Image Processing Toolbox 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!