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);
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Praveen kumar
le 17 Mar 2016
Réponse apportée : Walter Roberson
le 18 Mar 2016
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 commentaires
Ced
le 17 Mar 2016
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.
Réponse acceptée
Walter Roberson
le 18 Mar 2016
You need to visit http://www.mathworks.com/matlabcentral/fileexchange/49832-a-simple-system-for-automatic-test-processing-and-exam-scoring and download the .zip there. Unzip it into a convenient directory that is not underneath your MATLAB installation. Use the MATLAB pathtool to add that directory to your MATLAB path and remember to tell pathtool to "save" the path. After that you will be able to call upon clip.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Search Path dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!