1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
| switch get(handles.popup,'value')
case 1
str1==1
criterion1=matrice(:,3);
crit1=reshape(criterion1, length(x), length(y));
tx = 1:.25:length(x); % x axis interval
ty= 1:.25:length(y); % y axis interval
[XI,YI] = meshgrid(tx,ty);
ZI = griddata(X,Y,criterion1,XI,YI);
mesh(XI,YI,ZI), hold
plot3(X,Y,crit1,'o'), hold off
case 2
str2==1
criterion2= matrice(:,4);
crit2= reshape(criterion2, length(x), length(y));
tx = 1:.25:length(x); % x axis interval
ty= 1:.25:length(y); % y axis interval
[XI,YI] = meshgrid(tx,ty);
ZI = griddata(X,Y,criterion1,XI,YI);
mesh(XI,YI,ZI), hold
plot3(X,Y,crit2,'o'), hold off
case 3
str3==1
% criterion3=reshape(matrice(:,5), length(x), length(y));
criterion3= matrice(:,5);
crit3=reshape(criterion3, length(x), length(y));
tx = 1:.25:length(x); % x axis interval
ty= 1:.25:length(y); % y axis interval
[XI,YI] = meshgrid(tx,ty);
ZI = griddata(X,Y,criterion1,XI,YI);
mesh(XI,YI,ZI), hold
plot3(X,Y,crit3,'o'), hold off
end |
Partager