Least Square Linear Approximation
古いコメントを表示
Hi,
Based on the least square linear approximation, use this to fit a the function y = aln(x) + bcos(x) + ce^x to the data below. Find a, b, and c.
x=[0.24, 0.65, 0.95, 1.24, 1.73, 2.01, 2.23, 2.52, 2.77, 2.99];
x=x'; %Transposes x%
y=[0.23, -0.26, -1.10, -0.45, 0.27, 0.10, -0.29, 0.24, 0.56, 1.00];
y1=[log(x) cos(x) exp(x)]
When I run this code it gives me a 3x10 matrix, how do I find the value of a, b and c (each one should have one value)?
Thank you so much in advance!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Linear Algebra についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!