Undefined function 'bwconncomp' for input arguments of type 'logical'.

I get the above error. My matlab installation is R2016a. Any idea as to what might be wrong, am I missiong some packages ?

답변 (2개)

Yes, you either don't have the Image Processing Toolbox or a license for it:
Is it installed?
ver
Is it licensed?
which -all bwconncomp
Image Analyst
Image Analyst 2016년 4월 27일
You probably don't have the Image Processing Toolbox. Try this:
% Check that user has the Image Processing Toolbox installed.
hasToolbox = license('test', 'image_toolbox'); % license('test','Statistics_toolbox'), license('test','Signal_toolbox')
if ~hasToolbox
% User does not have the toolbox installed.
message = sprintf('Sorry, but you do not seem to have the Image Processing Toolbox.\nDo you want to try to continue anyway?');
reply = questdlg(message, 'Toolbox missing', 'Yes', 'No', 'Yes');
if strcmpi(reply, 'No')
% User said No, so exit.
return;
end
end

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2016년 4월 27일

답변:

2016년 4월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by