[n1,ctr1] = hist(X(:,1),20);
[n2,ctr2] = hist(X(:,2),20);
subplot(2,2,2); plot(X(:,1),X(:,2),'.'); axis([0 12 -8 8]); h1 = gca;
title('1000 Simulated Dependent t and Gamma Values');
xlabel('X1 ~ Gamma(2,1)'); ylabel('X2 ~ t(5)');
subplot(2,2,4); bar(ctr1,-n1,1); axis([0 12 -max(n1)*1.1 0]); axis('off'); h2 =
gca;
subplot(2,2,1); barh(ctr2,-n2,1); axis([-max(n2)*1.1 0 -8 8]); axis('off'); h3 =
gca;
set(h1,'Position',[0.35 0.35 0.55 0.55]);
set(h2,'Position',[.35 .1 .55 .15]);
set(h3,'Position',[.1 .35 .15 .55]);
colormap([.8 .8 1]);
在运行到第六和第七条命令时,会有以下提示:
>> subplot(2,2,4); barh(ctr1,-n1,1); axis([0 12 -max(n1)*1.1 0]); axis('off'); h2 =
gca;
??? subplot(2,2,4); barh(ctr1,-n1,1); axis([0 12 -max(n1)*1.1 0]); axis('off'); h2 =
|
Error: Expression or statement is incomplete or incorrect.
>> subplot(2,2,1); barh(ctr2,-n2,1); axis([-max(n2)*1.1 0 -8 8]); axis('off'); h3 =
gca;
??? subplot(2,2,1); barh(ctr2,-n2,1); axis([-max(n2)*1.1 0 -8 8]); axis('off'); h3 =
|
Error: Expression or statement is incomplete or incorrect.