Friday, June 27, 2008

Show me the space!

x = (0.01:.01:1);
y = (0.01:.01:1);


size = length(x);

for i = 1:size
for j = 1:size


...
:)
C:\academy\me2008\TRY11

Model=[Model1, Model2, Model3, Model4, Model5, Model6, Model7, Model8];
QQ=0;
for k = 1:N
QQ=QQ+(Di(k)-Model(k)).^2;
end
z(i,j) = -(QQ)./(2*sigma.^2);
end
end
% logL=(-N/2)*log(QQ);




[X,Y] = meshgrid(x,y);

Z = griddata(x,y,z,X,Y,'cubic');


meshc(X,Y,Z) %
colormap hsv

surfc(X,Y,Z)

No comments: