注册 登录
MATLAB中文论坛 返回首页

stats01的个人空间 http://www.ilovematlab.cn/?465588 [收藏] [复制] [分享] [RSS]

留言板

facelist

您需要登录后才可以留言 登录 | 注册


stats01 2018-6-11 14:44
SSy =   541.86
fx=@(b,x)b(1)*x+b(2)*sin(b(3)*x+b(4))+b(5)*sin(b(6)*x+b(7));
b =[-56.63947062  1.436704315  1.84015847  -5.657340008  1367.283934  0.04226325813  0.005768564428]
RSS = 105.720170318
MSe = 0.37757
R^2 = 0.80489
Liwenqiang12345 2018-6-11 11:13
大神,请教你一个问题,我想将室外气温拟合成为傅里叶级数,形如:t=∑【an+bn*sin(wt+φn)】其中采样周期已知。数据如下:
x=0.021816616
0.043633231
0.065449847
0.087266463
0.109083078
0.130899694
0.15271631
0.174532925
0.196349541
0.218166156
0.239982772
0.261799388
0.283616003
0.305432619
0.327249235
0.34906585
0.370882466
0.392699082
0.414515697
0.436332313
0.458148929
0.479965544
0.50178216
0.523598776
0.545415391
0.567232007
0.589048623
0.610865238
0.632681854
0.654498469
0.676315085
0.698131701
0.719948316
0.741764932
0.763581548
0.785398163
0.807214779
0.829031395
0.85084801
0.872664626
0.894481242
0.916297857
0.938114473
0.959931089
0.981747704
1.00356432
1.025380936
1.047197551
1.069014167
1.090830782
1.112647398
1.134464014
1.156280629
1.178097245
1.199913861
1.221730476
1.243547092
1.265363708
1.287180323
1.308996939
1.330813555
1.35263017
1.374446786
1.396263402
1.418080017
1.439896633
1.461713249
1.483529864
1.50534648
1.527163095
1.548979711
1.570796327
1.592612942
1.614429558
1.636246174
1.658062789
1.679879405
1.701696021
1.723512636
1.745329252
1.767145868
1.788962483
1.810779099
1.832595715
1.85441233
1.876228946
1.898045562
1.919862177
1.941678793
1.963495408
1.985312024
2.00712864
2.028945255
2.050761871
2.072578487
2.094395102
2.116211718
2.138028334
2.159844949
2.181661565
2.203478181
2.225294796
2.247111412
2.268928028
2.290744643
2.312561259
2.334377875
2.35619449
2.378011106
2.399827721
2.421644337
2.443460953
2.465277568
2.487094184
2.5089108
2.530727415
2.552544031
2.574360647
2.596177262
2.617993878
2.639810494
2.661627109
2.683443725
2.705260341
2.727076956
2.748893572
2.770710188
2.792526803
2.814343419
2.836160034
2.85797665
2.879793266
2.901609881
2.923426497
2.945243113
2.967059728
2.988876344
3.01069296
3.032509575
3.054326191
3.076142807
3.097959422
3.119776038
3.141592654
3.163409269
3.185225885
3.207042501
3.228859116
3.250675732
3.272492347
3.294308963
3.316125579
3.337942194
3.35975881
3.381575426
3.403392041
3.425208657
3.447025273
3.468841888
3.490658504
3.51247512
3.534291735
3.556108351
3.577924967
3.599741582
3.621558198
3.643374814
3.665191429
3.687008045
3.70882466
3.730641276
3.752457892
3.774274507
3.796091123
3.817907739
3.839724354
3.86154097
3.883357586
3.905174201
3.926990817
3.948807433
3.970624048
3.992440664
4.01425728
4.036073895
4.057890511
4.079707127
4.101523742
4.123340358
4.145156973
4.166973589
4.188790205
4.21060682
4.232423436
4.254240052
4.276056667
4.297873283
4.319689899
4.341506514
4.36332313
4.385139746
4.406956361
4.428772977
4.450589593
4.472406208
4.494222824
4.51603944
4.537856055
4.559672671
4.581489286
4.603305902
4.625122518
4.646939133
4.668755749
4.690572365
4.71238898
4.734205596
4.756022212
4.777838827
4.799655443
4.821472059
4.843288674
4.86510529
4.886921906
4.908738521
4.930555137
4.952371753
4.974188368
4.996004984
5.017821599
5.039638215
5.061454831
5.083271446
5.105088062
5.126904678
5.148721293
5.170537909
5.192354525
5.21417114
5.235987756
5.257804372
5.279620987
5.301437603
5.323254219
5.345070834
5.36688745
5.388704066
5.410520681
5.432337297
5.454153912
5.475970528
5.497787144
5.519603759
5.541420375
5.563236991
5.585053606
5.606870222
5.628686838
5.650503453
5.672320069
5.694136685
5.7159533
5.737769916
5.759586532
5.781403147
5.803219763
5.825036379
5.846852994
5.86866961
5.890486225
5.912302841
5.934119457
5.955936072
5.977752688
5.999569304
6.021385919
6.043202535
6.065019151
6.086835766
6.108652382
6.130468998
6.152285613
6.174102229
6.195918845
6.21773546
6.239552076
6.261368692
6.283185307
x亦可以写成x=n*PI/144; n=1:288;

y=[10.372
10.127
10.274
10.029
10.103
9.71
9.931
9.931
9.636
9.955
9.562
10.176
9.759
9.463
9.882
9.562
9.414
9.66
9.266
9.512
9.685
9.636
9.34
9.734
9.315
9.636
9.414
10.078
9.488
10.25
9.783
10.421
9.906
10.299
9.906
10.323
9.955
10.201
9.931
10.152
10.078
9.66
10.25
9.364
10.029
9.611
9.66
9.685
9.389
9.931
9.66
9.562
10.152
9.955
10.029
9.783
9.389
9.833
8.919
9.636
8.895
9.66
9.018
9.636
9.537
9.192
9.537
9.192
9.537
9.142
9.931
9.364
9.808
8.994
9.586
8.944
9.216
9.611
8.771
8.87
8.795
8.671
9.315
8.795
8.771
9.29
8.622
8.994
8.994
9.586
9.068
9.512
9.315
9.512
9.216
9.142
9.66
11.665
12.874
12.416
11.105
10.47
10.078
9.537
9.216
9.068
8.994
8.746
8.87
8.919
8.795
8.82
9.192
9.043
9.167
8.82
8.994
9.018
9.068
9.241
9.266
9.438
9.315
9.66
9.266
9.241
9.216
9.512
9.488
9.611
9.66
9.562
10.127
9.759
10.078
9.98
10.201
10.225
10.495
10.47
10.764
10.837
11.203
10.91
11.324
11.276
11.446
11.227
11.276
11.276
11.616
11.64
11.859
12.657
12.56
12.56
11.64
11.859
11.519
12.198
12.319
12.319
12.367
12.609
12.778
12.705
12.585
13.091
12.754
13.115
12.874
13.428
12.874
13.284
12.995
13.452
12.971
13.26
12.85
12.922
12.778
13.26
13.043
13.452
12.922
13.163
12.802
13.139
13.284
12.778
13.38
12.947
13.332
12.922
13.284
13.163
13.5
12.971
13.163
12.922
12.898
12.85
12.729
12.874
12.681
12.729
12.488
12.391
12.246
12.149
12.101
12.004
11.956
12.004
11.762
11.616
11.47
11.616
11.519
11.592
11.762
11.713
11.592
11.349
11.13
10.983
10.715
10.544
10.372
10.225
10.078
10.005
9.906
9.857
9.66
9.488
9.364
9.364
9.364
9.512
9.34
9.759
10.788
10.225
10.25
10.201
9.833
9.611
9.438
9.167
9.117
9.463
10.348
10.25
9.364
9.167
10.005
10.617
9.71
9.734
10.127
10.617
10.642
9.955
9.611
10.127
10.617
10.568
9.34
9.488
10.299
10.47
10.274
9.414
9.66
10.47
10.69
10.299
9.759
10.078
10.544
10.519
10.299
9.389
9.537
10.201
10.348
10.25
]
谢谢大神了
小新259 2018-6-10 15:57
大神,麻烦你回答下我这问题:
积分函数为正态分布函数F(x)(不是正态分布概率密度函数),积分区间为(a,b),正态分布服从N~(1,9).
求该积分的matlab实现。
等级太低,发不了链接,麻烦大神回答下我的问题
stats01 2018-5-23 21:58
拟合需要两个变数,x, y, 这里并没有相应的变数。若单独对 t 进行拟合,需先做成次数分布,但这里数据点太少了,很难做成适当的次数分布。
wangnan123 2018-5-23 21:32
http://www.ilovematlab.cn/thread-546554-1-1.html高手,请回复一下我的关于威布尔拟合的问题,毕业急求啊,感恩感恩
半个柠檬片 2018-5-7 17:01
大神,咨询下如何对一条已知的曲线自动分段线性拟合
此生伴着你 2018-4-13 15:20
http://www.ilovematlab.cn/thread-541134-1-1.html老师,我刚发布了一个帖子,您方便的话帮我看一下程序可以么
stats01 2018-3-26 17:14
可以先做一个次数分布,根据分布的形状可大概知道其分布并求出相关参数。
莫小陌 2018-3-26 17:04
大神,您好。我想请教您一个问题,就是给出一个数据集,我们怎么能知道它的分布呢?
此生伴着你 2018-3-5 17:10
http://www.ilovematlab.cn/thread-537554-1-1.html?s_tid=LandingPageTabMy老师,帮忙再回复一下我的帖子吧,我把您说的程序复制到MATLAB里面,但还是运行不了,是不是需要设置一下调用函数还是什么,麻烦老师了
stats01 2018-1-26 22:32
某些初值将使函数变得nan and/or inf,从而使得函数无意义。另,公式图片看不清楚,也难于理解和改正。
学习ing1 2018-1-26 21:59
使用fmincon函数怎么运算出来的值特别大,求解
http://www.ilovematlab.cn/thread-536208-1-1.html
(出处: MATLAB中文论坛),大神能给我改下吗
stats01 2018-1-17 18:40
连续性变数的分布函数指的是概率密度函数,其积分即为概率。间断性变数的分布即为概率。
飞不过海的鱼 2018-1-17 16:46
老师,您好,想请问一下这个链接里的问题。http://www.ilovematlab.cn/forum.php?mod=viewthread&tid=199656
您给的程序是对f(x)的积分,也就是密度函数吧,想请问对F(x)的积分,就是分布函数也是可以用normcdf 来表示吗
utopia627 2018-1-8 21:47
能帮我看看这个问题吗? 找不到合适的数据初始点。http://www.ilovematlab.cn/thread-534891-1-1.html
9417788 2017-11-30 18:50
加賴:9417788  微信:google2582此地美女三千,任君挑選
Stud_Gao 2017-11-22 20:16
老师我最新的贴子有三十组数据,您能帮我看看吗,我自己也算了一下,但是不知道算出来的结果怎么样,误差大不大?
Stud_Gao 2017-11-20 17:07
老师,如果有三十组数据够吗?
Stud_Gao 2017-11-20 17:04
老师,代码怎么写啊,或者说是用matalab的那个APP做的吗?请指点,现在看别人写的代码完全没有头绪,改不对
stats01 2017-11-20 16:40
数据点太少了,任何结果都不可信。
关闭

站长推荐上一条 /3 下一条

返回顶部