Bootstrap

matlab如何定义常数a,利用matlab进行分段拟合求一个常数a,拐点m,直线y=kx+b,数据如下...

x=[3.00221124

2.80819715

2.77570885

2.700689847

2.472327868

2.427454075

2.373975089

2.283402274

2.263844265

2.211565695

2.190535589

2.186051277

2.159868791

2.159868791

2.152924318

2.148267733

2.107786015

2.089391873

2.079441542

2.066862759

2.059238834

2.054123734

2.05284086

2.051556338

2.047692843

2.02287119

2.020222182

2.009555414

2.002830439

2.002830439

1.993338843

1.986503546

1.983756292

1.979621206

1.974081026

1.962907725

1.962907725

1.962907725

1.962907725

1.961502244

1.953027617

1.948763218

1.932969638

1.932969638

1.932969638

1.919859472

1.912501087

1.906575144

1.900613874

1.894616855

1.894616855

1.880990603

1.867176109

1.867176109

1.867176109

1.867176109

1.867176109

1.865629318

1.864080131

1.83736998

1.834180185

1.830980182

1.814824742

1.803358605

1.800058272

1.800058272

1.798404012

1.798404012

1.780024213

1.780024213

1.780024213

1.780024213

1.780024213

1.778336449

1.766441661

1.763017

1.757857918

1.743968805

1.743968805</

;