自作関数へのフィッティングの方法
7 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
x=[2.82 2.821 2.822 2.823 2.824 2.825 2.826 2.827 2.828 2.829 2.83 2.831 2.832 2.833 2.834 2.835 2.836 2.837 2.838 2.839 2.84 2.841 2.842 2.843 2.844 2.845 2.846 2.847 2.848 2.849 2.85 2.851 2.852 2.853 2.854 2.855 2.856 2.857 2.858 2.859 2.86 2.861 2.862 2.863 2.864 2.865 2.866 2.867 2.868 2.869 2.87 2.871 2.872 2.873 2.874 2.875 2.876 2.877 2.878 2.879 2.88 2.881 2.882 2.883 2.884 2.885 2.886 2.887 2.888 2.889 2.89 2.891 2.892 2.893 2.894 2.895 2.896 2.897 2.898 2.899 2.9 2.901 2.902 2.903 2.904 2.905 2.906 2.907 2.908 2.909 2.91 2.911 2.912 2.913 2.914 2.915 2.916 2.917 2.918 2.919 2.92]
y=[0.9972095 0.995470369 0.999258277 0.995044981 0.997887415 0.996324152 0.99436406 0.999061366 1.000561497 0.997430461 0.999628049 0.998542783 0.999190635 0.999530345 0.998975687 0.998437563 1.002276577 0.999746796 0.999806922 0.995820601 0.998873473 0.995198301 0.999955733 0.994603059 0.996351208 0.993553869 0.995094585 0.997979106 0.994926234 0.992207057 0.994448236 0.9873414 0.992536244 0.988909173 0.98191357 0.980919995 0.97445049 0.967277517 0.968837774 0.96578941 0.954478298 0.952247642 0.947141483 0.940024125 0.940273646 0.939183871 0.948510841 0.953863515 0.954660178 0.953277291 0.950443877 0.946223066 0.943081508 0.942710233 0.949456315 0.950026004 0.958759235 0.964801849 0.969225583 0.974760137 0.980786216 0.984805607 0.985725527 0.989424749 0.988997858 0.992019165 0.992068769 0.993293826 0.996276051 0.996872797 0.998405998 1.0008501 0.999083913 0.996545113 0.998348878 0.997625869 0.997879899 1.000281913 1.000671226 0.99746353 0.999089925 0.999262786 0.997682988 0.998530758 0.997165909 1.001494946 0.998299275 0.998454098 0.997422945 1.000415693 0.999936192 1.000266882 1.000826049 1.002595243 1.00102747 1.003088272 0.99971974 1.000774943 1.000722333 0.993720717 0.999745293]
上のx,yのデータを、a,b,c,dのパラメータを初めに定義した上で、以下の関数でフィッティングしたいと考えています。
a=1, b=-0.002, c=2.867, d=0.02
f(x)=a+b*d/(x-c)^2+d^2
また、フィッティングしたスペクトルの、a,b,c,dのパラメータの値を推定し、出力したいと考えています。
自作関数を使ってフィッティングする方法をどなたかご教授ください。
2 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur 線形予測符号化 dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!