Undefined function 'clip' for input arguments of type 'logical'. Error in lines (line 3) aa=clip(aa); Error in main (line 81) [fl re]=lines(re);
이전 댓글 표시
function [fl re]=lines(aa)
%Divide text in lines.
aa=clip(aa);
r=size(aa,1);
for s=1:r
if sum(aa(s,:))==0
nm=aa(1:s-1,1:end);%First line matrix
rm=aa(s:end,1:end);%Remain line matrix
fl=~clip(~nm);
re=~clip(~rm);
%*-*-*Uncomment lines below to see the result*-*-*-*-
subplot(2,1,1);imshow(fl);
subplot(2,1,2);imshow(re);
break
else
fl=~aa;%Only one line.
re=[];
end
end
댓글 수: 2
Ced
2016년 3월 17일
Just as the error says... "aa" is a logical, and you are calling a function "clip" with it. But matlab was not able to find any function which matches this format.
Praveen kumar
2016년 3월 18일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Entering Commands에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!