4 回答

TA貢獻1860條經驗 獲得超8個贊
%克里金插值 Kriging interpolation
load data1
theta = [10 10]; lob = [1e-1 1e-1]; upb = [20 20];
[dmodel, perf] =dacefit(S, Y, @regpoly0, @corrgauss, theta, lob, upb)
X = gridsamp([0 0;100 100], 40);
[YX MSE] = predictor(X, dmodel);
X1 = reshape(X(:,1),40,40); X2 = reshape(X(:,2),40,40);
YX = reshape(YX, size(X1));
figure(1), mesh(X1, X2, YX)
hold on,
plot3(S(:,1),S(:,2),Y,'.k', 'MarkerSize',10)
hold off

TA貢獻1829條經驗 獲得超4個贊
然后colnam是個字符串類的數組,cell是個二維數組,isCellEditable是一個判斷某個數據是否被修改過的方法,傳入的參數應該表示的是數據的位置,返回布爾值,可惜此函數只是返回了一個false,顯然沒有完成函數體。BorrowListModel()這是一個默認構造函數,也是沒有完成的。

TA貢獻1856條經驗 獲得超11個贊
model:
sets:
count/1..92/;
member/1..20/;
ss(member,count):x,L;
endsets
min=@sum(ss:x*L);
@for(ss:@bin(x));
@for(count(j):@sum(member(i):x(i,j))=1);
@for(member(i):@sum(count(j):x(i,j))>=1);
@for(ss(i,j):x*L<=30);
Data:
L=@file('c:\Users\model\Desktop\l.txt');
enddata
end
添加回答
舉報