楼主: shabiwo
1034 0

[问答] 请高手帮忙看一下为什么会错,谢谢 [推广有奖]

  • 1关注
  • 3粉丝

已卖:60份资源

博士生

91%

还不是VIP/贵宾

-

威望
0
论坛币
969 个
通用积分
0.1005
学术水平
6 点
热心指数
9 点
信用等级
5 点
经验
4159 点
帖子
191
精华
0
在线时间
510 小时
注册时间
2010-11-20
最后登录
2025-4-9

楼主
shabiwo 发表于 2014-3-3 17:26:51 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
[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.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Expression incomplete statement Dependent Simulated Values title

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-27 03:54