clear, clear all
x = lhsdesign(100,2);
subplot(2,2,1); plot(x(:,1), x(:,2), 'o');
subplot(2,2,2); hist(x(:,2));
subplot(2,2,3); hist(x(:,1));
x
以上这个程序昨天运行还没问题,今天运行时却显示出错:提示如下:
??? Attempt to execute SCRIPT rand as a function:
D:\Program Files\MATLAB\R2010a\notebook\pc\rand.m
Error in ==> lhsdesign>getsample at 132
x = rand(n,p);
Error in ==> lhsdesign at 84
X = getsample(n,p,dosmooth);
Error in ==> lhs at 2
x = lhsdesign(100,2);
请问这是怎么回事?谢谢