Q=imread('r6.jpg');imginp=double(reshape(Q,64,1));disp (' ');disp ('Simulating SOM neural network for the input image...');disp (' ');msx=sim(net,imginp)msxm=find(msx);%classification and displaying output
disp (' ');disp ('Classifying the subject in input image with the matched image in the training database...');disp (' ');ans=find((sm - msxm)==min(abs((sm-msxm))));if (ans > 0) & (ans <= 5)disp('Subject is identified to be: rock');else if (ans > 5) & (ans <= 10)disp('Subject is identified to be: hulk');else if (ans > 10) & (ans <= 15)disp('Subject is identified to be: bob');else if (ans > 15) & (ans <= 20)disp('Subject is identified to be: banda');elsedisp('Subject is not identified in the training database.'); end end end endwhen i try to execute it iam getting the following error y this is happening???? Error: File: C:\MATLAB7\work\trainsimsom.m Line: 63 Column: 1Illegal use of reserved keyword "end".
MATLAB: Why iam i getting the error the illegal use of the end
face recignition
Best Answer