Index exceeds matrix dimensions.

hjh1655082022-10-04 11:39:541条回答

Index exceeds matrix dimensions.
>> disp('');
disp(' ');
n=input('请输入所要测试的随机数长度:')
k=0;b=0;c=0;d=0;e=0;f=0;g=0;h=0;l=0;j=0;
for t=1:100
a=rand(1,n)
sum=0
for i=1:n
sum=sum+2*b(i)-1;
end
Sobs=abs(sum)/sqrt(n)
p=Sobs/sqrt(2)
p_value=erfc(p)
if(0

已提交,审核后显示!提交回复

共1条回复
Wszce 共回答了24个问题 | 采纳率79.2%
第9排(没数错的话.),也就是for i=1:n下面那个b(i)有问题,b只是一个值,不是矩阵.
后面的我都还没看,有问题再问吧,最好说一下MATLAB报错报的是第几排哪一句.
1年前

相关推荐

英语翻译Most people would agree that ,although our age exceeds a
英语翻译
Most people would agree that ,although our age exceeds all previous ages in knowledge,there has been no corresponding increase in
wisdom .
magic_alx1年前1
kangmao195 共回答了15个问题 | 采纳率100%
大多数人都会同意,虽然我们的年龄超过了以往所有年龄的知识,但并没有相应增加
智慧.
很容易!选我
what number exceeds 50 percent of itself by 10 a5 b10 c15 d2
what number exceeds 50 percent of itself by 10 a5 b10 c15 d20 e60 为什么选d?
onlyskyfly1年前1
买把新锁 共回答了19个问题 | 采纳率94.7%
f首先要理解问题的意思.如下:
什么数超过50%的本身是10
答案:D
D:20 分析是:20 的一半就是10 ,所以答案就是选择D
the number of quarters exceeds twice the number of dimes by
the number of quarters exceeds twice the number of dimes by 1
lha7wvp1年前1
liaoge666 共回答了17个问题 | 采纳率88.2%
25美分的(硬币)数量比一角的数量2倍还要多1个.
有问题请追加~
一道微观经济学问题..:a resource is scarce if supply exceeds demand at
一道微观经济学问题..:a resource is scarce if supply exceeds demand at zero price?这是对的还是错
想知道scarce和supply demand是不是有关的..(因为一个同学说选false因为scarce和supply demand 没有关系.呃..)
没关系的话它和什么有关呢?
qqzone1年前1
尊师重道 共回答了10个问题 | 采纳率100%
当然是错的啊,当价格为0的时候的供给超过需求,你还能说这种资源是稀缺的吗?从供求曲线来看,如果能达到均衡,在价格为0时,需求一定是大于供给的,你可以自己画个图看看.而资源稀缺性是经济学最基本的三大假设之一,所以无论是供给还是需求都是基于这个假设的基础之上的,说他们之间没有关系也是错误的.
in a certain geometric sequence the first term exceeds the s
in a certain geometric sequence the first term exceeds the second term by 32 and the sum of the second and third is 48,find the infinite sum of rhe sequence
woshifubin1年前1
X星痕 共回答了20个问题 | 采纳率90%
一个几何级数中,第一项比第二项大32,第二项与第三项的和是48,求这个级数的无穷和.
设几何级数的前三项是a,aq,aq^2,则
a-aq=32,aq+aq^2=48,解得
a=8,q=-3,这时无穷和发散,
a=64,q=1/2,这时a+aq+aq^2+...=64/(1-1/2)=128.
As can be seen ,the scope far exceeds the narrow look at the
As can be seen ,the scope far exceeds the narrow look at the connections only .
是钢结构方面的
lanbo0151年前4
虹心 共回答了17个问题 | 采纳率82.4%
可以看出,范围远远超出有限的看连接而已.
Until the current warming trend exceeds the range of normal
Until the current warming trend exceeds the range of normal climatic fluctuations,there will be,among scientists,considerable --- the possibility that increasing levels of atmosphere carbon dioxide can cause long-term warming effects.
A interest in
B uncertainty about
C enthusiasm for
D worry about
E experiment on
there will be 如何理解
Mcphee31年前2
mackoldwolf 共回答了22个问题 | 采纳率90.9%
这句话的主干是there will be uncertainty ,there will be 是there be 的将来时结构,将会有不确定性.其他的单词都是枝叶修饰这句话的,considerable形容词修饰名词uncertainty,about the possibility关于...的可能,后置定语修饰 considerable uncertainty
that increasing levels of atmosphere carbon dioxide can cause long-term warming effects.
是修饰 possibility 的后置定语
英语翻译“If a person exceeds that on one particular day and happ
英语翻译
“If a person exceeds that on one particular day and happens not to use their headphones for the rest of the week,they're at no higher risk,” study author Brian Fligor told reporters.
独咏诗1年前2
勇敢的海豚 共回答了29个问题 | 采纳率82.8%
研究报告的作者布赖恩Fligor告诉记者:如果一个人有一天超过了(分贝?)偏偏在那一周并不使用自己的耳机,他们没有较高风险存在,“
英语翻译File save failure!The file size exceeds the maximum size
英语翻译
File save failure!The file size exceeds the maximum size of this version!
千里之外取人rr1年前1
大三元1 共回答了13个问题 | 采纳率92.3%
文件储存失败!
文件大小已超过这个版本的最大限度
what number exceeds 50 percent of itself by 10 什么数字超过50%的本身1
what number exceeds 50 percent of itself by 10 什么数字超过50%的本身10
随遇而安12311年前1
菜苗苗 共回答了17个问题 | 采纳率100%
what number exceeds 50 percent of itself by 10
应该理解为什么数字超过自身的50%是10,或者说,什么数的1.5倍是10.
很显然,10/1.5=20/3=6.66666666.
英语翻译If the 10% of your monthly base salary exceeds the contr
英语翻译
If the 10% of your monthly base salary exceeds the contribution cap,the Company contributes 10% of your monthly base salary,as of the month in which the contribution base is collected each year.The exceeding amount over the contribution cap will be paid together with your monthly salary as benefit subsidy.
麻烦帮我翻译一下
lingyin871年前2
丽儿子 共回答了19个问题 | 采纳率94.7%
译文:公司将于每年缴公积金的月份起另外再帮你缴10%的月基本工资.如果你每月基本工资的10%超过了公积金上限,那么超过的部分会连同你的月基本工资一起支付给你,作为效益补贴.
PS:也就是说你和你的公司分别缴你基本月工资的10%作为公积金,超过公积金上限的部分会返还给你.
翻译disk space required for the installation exceeds available
翻译disk space required for the installation exceeds available disk space
Q点调皮1年前1
小恬甜 共回答了11个问题 | 采纳率90.9%
硬盘空间不够用
英语翻译Upload fail:The upload Size exceeds limit of1MB 这个是我用淘宝助
英语翻译
Upload fail:The upload Size exceeds limit of1MB
这个是我用淘宝助理上传出现的问题 帮我看下
我用淘宝助理上传我的产品提示我上传失败了。但是我刚才进我的淘宝店 却发现都上传进来了。这个是什么情况
最深的蓝I1年前6
yymybluesky 共回答了15个问题 | 采纳率53.3%
上传失败:上载的大小超过限制的1MB
MATLAB问题?TXT共720行,老是提示Index exceeds matrix dimensions.Error
MATLAB问题?

TXT共720行,老是提示Index exceeds matrix dimensions.
Error in ==> Untitled3 at 4
xi=m(i,1);

matlab怎么将读进来的xls数据经过处理在写进另一个xls并导出;
m=xlsread('C:UsersljDesktop负荷率.xlsx');
b=[];
for i=1:1440
if 0
田蕾1年前1
在岸边走的鱼 共回答了23个问题 | 采纳率87%
先检查一下m的size
再检查一下max(i)和min(i) 注意循环有24次,要都检查
Warning:maximum cell squish exceeds 0.99 我如何修改,是在gambit还是在fl
Warning:maximum cell squish exceeds 0.99 我如何修改,是在gambit还是在fluent中呢?
具体点哪个按钮呢,郁闷的要命啊
3号床的PAL1年前1
max_zhang_2007 共回答了10个问题 | 采纳率100%
mbit还是在fluent中呢?
英语翻译The larger of two numbers exceeds twice the smaller numb
英语翻译
The larger of two numbers exceeds twice the smaller number by 8.The sum of twice the larger and 3 times the smaller number is 65.If X is the smaller number.
这个提问的太太绕,一时没反应过来,就只是没理解题意。:0 :0 :(
任笑天20081年前4
天高云淡清风雁 共回答了13个问题 | 采纳率100%
两个数中较大的数比较小的数的两倍还多8. 较大数的两倍与较小数的三倍的和是65.如果X是较小数的话...
3x + 2*(2x+8) = 65
x = 7
1 it exceeds the specific objects(它超越实质物体)
1 it exceeds the specific objects(它超越实质物体)
2 People express their demand by languages.(人们通过语言表达他们的需求)
3 it also drives people to action(驱使人们行动)
4 cigarettes were for men (香烟是男性的专属品)
5 try to target female markets (以女性市场为目标/瞄准女性市场)
6 The First World War pushed the progress of woman's rights
7The feminism movement started to sprout that women didn't reconcile to be appendant to men and sacrifice to their families any more.
8 Women thought smoking can conducive to communicate with men.
9 LV symbol rich,special and successful and so on
10 These suitcases symbolize the beautiful women.These suitcases are sexy as these women.You purchase one of the suitcases as if you take one of ladies to home.(这些箱子代表着这些美女,它们和这些美女一样性感.你买了他们就像把美女带回家一样)
11 People can get what they desire from advertising.
12 It seems to say that if you drink the beer,you like kiss sexy young lady.
13 The beer tastes like the red lip of a ladylike female.
14 The advertisement offers an imaginary space to the people.(广告给人们想象空间)
15 if advertising can not stimulate consumers’ desire,consumers do not purchase the products.
16 She looks at you very confident.(自信的看着你)
17They are powerful as men.Lots of women want to become this type.
(想男人一样强大,使很多女性想成为德类型)
18 The advertising presents a people who they want to be.
17
zhoping1年前4
lt2001107 共回答了24个问题 | 采纳率91.7%
1 it exceeds the actual objects(它超越实质物体)
2 People express their demands by word.(人们通过语言表达他们的需求)
3 it also drives people to act(驱使人们行动).
4 cigarettes are for men only(香烟是男性的专属品).
5 try to target the female markets (以女性市场为目标/瞄准女性市场)
6 The First World War pushed the progress of the movement of woman's rights
7After the feminism movement started sprouting,women no longer had to submit tomen and be their appendant and sacrifice for their families any more.
8 Some women thought that smoking facilitates the communication with men.
9 LV symbolize richness,speciality,succes and so on.
10 These suitcases symbolize the beautiful women.These suitcases are as sexy as these women.You purchase one of the suitcases as if you take one of these ladies to home.(这些箱子代表着这些美女,它们和这些美女一样性感.你买了他们就像把美女带回家一样)
11 People can get whatever they desire from advertisement.
12 It seems to say that drinking this beer is just like kissing a sexy young lady.
13 The beer tastes like the red lip of a ladylike female.
14 The advertisement offers people an free space to imagine(广告给人们想象空间)
15 if advertising can not stimulate consumers’ desire,consumers will not purchase the products.
16 She looks at you very confidently.(自信的看着你)
17 Being as powerful as men becomes the type that lots of women want to be.
(想男人一样强大,使很多女性想成为德类型)
The advertisement presents what a person wants to be.
profit margin-an amount by which revenue from sales exceeds
profit margin-an amount by which revenue from sales exceeds costs in a business.
yingbaiwan1年前1
意乱情迷 共回答了19个问题 | 采纳率100%
利润率-是指在一公司中收益超过成本的那一部分
Profit margin=revenue - cost