function genplot();

%---------------------------------------------------------
%Die Excel-Datei, welche von GenOpt generiert wird,
%muss ausgewählt werden.
%---------------------------------------------------------

[file] = uigetfile('.xls');
[A] = xlsread(file);

x = A(:,17);
y = A(:,19);
tot = A(:,5);

rangeX = 0:0.1:8;
rangeY = 0:0.1:8;

[X,Y] = meshgrid(rangeX,rangeY);

Z = griddata(x,y,tot,X,Y);

surf(X,Y,Z)
hold on
%contour(X,Y,Z,30)



xlabel('depth2')
ylabel('depth3')
zlabel('total')




%[file] = uigetfile('.xls');
%[B] = xlsread(file);

%x1 = B(:,12);
%y1 = B(:,13);
%tot1 = B(:,5);

%plot(x1,y1)




%contour3(X,Y,Z)
%hold on
%plot3(x,y,tot)

return;
