Afficher commentaires plus anciens
楼主最近在用matlab中cftool工具箱中的custom equation做曲线拟合时,用的表达式是y=4.1855-a*exp(b*x)-c*exp(d*x) 为什么拟合出来的a、b、c、d参数的正负号问题和实际问题不符合 a、c是电压参数应该为正 b、d参数应该也是常数。附上数据:
x=[0.100000000000000;0.200000000000000;0.300000000000000;0.400000000000000;0.500000000000000;0.600000000000000;0.700000000000000;0.800000000000000;0.900000000000000;1;1.10000000000000;1.20000000000000;1.30000000000000;1.40000000000000;1.50000000000000;1.60000000000000;1.70000000000000;1.80000000000000;1.90000000000000;2;2.10000000000000;2.20000000000000;2.30000000000000;2.40000000000000;2.50000000000000;2.60000000000000;2.70000000000000;2.80000000000000;2.90000000000000;3.00000000000000;3.10000000000000;3.20000000000000;3.30000000000000;3.40000000000000;3.50000000000000;3.60000000000000;3.70000000000000;3.80000000000000;3.90000000000000;4;4.10000000000000;4.20000000000000;4.30000000000000;4.40000000000000;4.50000000000000;4.60000000000000;4.70000000000000;4.80000000000000;4.90000000000000;5;5.10000000000000;5.20000000000000;5.30000000000000;5.40000000000000;5.50000000000000;5.60000000000000;5.70000000000000;5.80000000000000;5.90000000000000;6;6.10000000000000;6.20000000000000;6.30000000000000;6.40000000000000;6.50000000000000;6.60000000000000;6.70000000000000;6.80000000000000;6.90000000000000;7;7.10000000000000;7.20000000000000;7.30000000000000;7.40000000000000;7.50000000000000;7.60000000000000;7.70000000000000;7.80000000000000;7.90000000000000;8;8.10000000000000;8.20000000000000;8.30000000000000;8.40000000000000;8.50000000000000;8.60000000000000;8.70000000000000;8.80000000000000;8.90000000000000;9;9.10000000000000;9.20000000000000;9.30000000000000;9.40000000000000;9.50000000000000;9.60000000000000;9.70000000000000;9.80000000000000;9.90000000000000;10];
y=[4.14150000000000;4.14150000000000;4.14120000000000;4.14120000000000;4.14090000000000;4.14060000000000;4.14030000000000;4.14030000000000;4.14000000000000;4.13960000000000;4.13930000000000;4.13930000000000;4.13900000000000;4.13870000000000;4.13870000000000;4.13840000000000;4.13810000000000;4.13810000000000;4.13780000000000;4.13750000000000;4.13720000000000;4.13720000000000;4.13690000000000;4.13620000000000;4.13620000000000;4.13590000000000;4.13560000000000;4.13560000000000;4.13530000000000;4.13530000000000;4.13500000000000;4.13470000000000;4.13470000000000;4.13440000000000;4.13410000000000;4.13410000000000;4.13380000000000;4.13380000000000;4.13340000000000;4.13340000000000;4.13310000000000;4.13310000000000;4.13280000000000;4.13280000000000;4.13250000000000;4.13250000000000;4.13220000000000;4.13220000000000;4.13190000000000;4.13190000000000;4.13190000000000;4.13160000000000;4.13160000000000;4.13130000000000;4.13130000000000;4.13100000000000;4.13100000000000;4.13070000000000;4.13070000000000;4.13070000000000;4.13030000000000;4.13030000000000;4.13000000000000;4.13000000000000;4.12970000000000;4.12970000000000;4.12910000000000;4.12910000000000;4.12910000000000;4.12880000000000;4.12880000000000;4.12850000000000;4.12850000000000;4.12850000000000;4.12820000000000;4.12820000000000;4.12790000000000;4.12790000000000;4.12760000000000;4.12760000000000;4.12760000000000;4.12720000000000;4.12720000000000;4.12690000000000;4.12690000000000;4.12690000000000;4.12660000000000;4.12660000000000;4.12630000000000;4.12630000000000;4.12630000000000;4.12600000000000;4.12600000000000;4.12570000000000;4.12570000000000;4.12570000000000;4.12540000000000;4.12540000000000;4.12510000000000;4.12510000000000];
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Linear and Nonlinear Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!