MATLAB,出现错误All matrices on a row in the bracketed expression must have the 怎么改x1=[ 5.83426.50532.66.27532.60375.36.1 375.3 0 807.86.25807.80592.55.34592.50446.35.54446.30654.64.81654.605816.73581 06697.78

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/31 00:34:18
MATLAB,出现错误Allmatricesonarowinthebracketedexpressionmusthavethe怎么改x1=[5.83426.50532.66.27532.60

MATLAB,出现错误All matrices on a row in the bracketed expression must have the 怎么改x1=[ 5.83426.50532.66.27532.60375.36.1 375.3 0 807.86.25807.80592.55.34592.50446.35.54446.30654.64.81654.605816.73581 06697.78
MATLAB,出现错误All matrices on a row in the bracketed expression must have the 怎么改
x1=[
5.83426.50532.6
6.27532.60375.3
6.1 375.3 0 807.8
6.25807.80592.5
5.34592.50446.3
5.54446.30654.6
4.81654.60581
6.73581 0669
7.78669 0764
8.39764 0 800
6.59800 0 350
5.67350 0 499
5.61499 0 408
4.97408 0 685
5.35685 0 490
6.4 490 0 469
5.77469 0 387
4.31387 0 551
4.68551 0582
4.48582 0668
5.246680579
6.065790596
5.035960526
4.8 526 0 458
4.37458 0 490
4.544900 494
5.06494 0 471.6
5.44471.60 527
6.04527 0.033531.6
5.63531.60.048494.4
5.546494.40.112289.9
5.53289.90.114410.6
5.306410.60.125305.3
5.304305.30.064498.6
4.687498.60.178491.6
4.598491.60.151402.5
4.647402.50.158511.3
4.38511.30.16506.8
4.456506.80.073499.5
3.899499.50.086405.5
3.37405.50.152558.4
3.739558.40.155207.1
3.702207.10.162488.2
3.405488.20.164351
3.165351 0.166 448.8
2.997448.80.173303.15
2.847303.150.184449.4
3.227449.40.191739.3
4.764739.30.193453.25
4.301453.250.195486.4
3.79486.40.197506.1
3.64506.10.232386.6
3.62386.60.235465.78
3.57465.780.236473.56
3.52473.560.238456.82];
X=[ones (size(x1(:,1))),x1(:,2:4)];
Y=x1(:,1);
[b,bint,r,rint,stats]=regress(Y,X,0.05)

MATLAB,出现错误All matrices on a row in the bracketed expression must have the 怎么改x1=[ 5.83426.50532.66.27532.60375.36.1 375.3 0 807.86.25807.80592.55.34592.50446.35.54446.30654.64.81654.605816.73581 06697.78
>> X=[ones(size(x1(:,1))),x1(:,2:4)];%%ones中间的空格去掉
Y=x1(:,1);
[b,bint]=regress(Y,X,0.05)
b =
3.6529
0.0025
-7.6239
0.0012
bint =
2.2146 5.0913
0.0006 0.0043
-10.4218 -4.8260
-0.0007 0.0031