dell\Desktop\Face\s',num2str(num1),'\',num2str(num2),'.bmp'));%读取该图片Рaxes( handles.axes2);%使用第2个axesР%输出判断所最接近的训练样本的人脸图片并显示其人名Рswitch num1Р case 1Р imshow(I);title('此人为 Peter');%显示图片及人名Р case 2Р imshow(I);title('此人为 Ben');Р case 3Р imshow(I);title('此人为 Nick');Р case 4Р imshow(I);title('此人为 Park'); Р case 5Р imshow(I);title('此人为 Linkin'); Р case 6Р imshow(I);title('此人为 Andy'); Р case 7Р imshow(I);title('此人为 Arthur'); Р case 8Р imshow(I);title('此人为 Lisa'); Р case 9Р imshow(I);title('此人为 Dana'); Р case 10Р imshow(I);title('此人为 Sara'); Рend;Р3.“退出”按钮Рfunction pushbutton3_Callback(hObject, eventdata, handles)Р% hObject handle to pushbutton3 (see GCBO)Р% eventdata reserved - to be defined in a future version of MATLABР% handles structure with handles and user data (see GUIDATA)Р%% 退出Рclose(gcf);