Interpolating measured data, by specific function

4 ビュー (過去 30 日間)
Milos STUDNICNY
Milos STUDNICNY 2015 年 5 月 21 日
回答済み: Andrei Bobrov 2015 年 5 月 21 日
Hello, I'm looking for ideal method, how to interpolate measured data by function looks like y(x)=D*sin{C*atan[B*x-E*(B*x-atan(B*x)]}.
I need to get constants B,C,D,E. Can anybody help me, with solution of this problem?? Thank you.

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2015 年 5 月 21 日
Please try it:
fm = @(B,C,D,E,x)D*sin(C*atan(B*x-E*(B*x-atan(B*x)));
F = fit(x,y,fm,'StartPoint', [1,1,1,1]);
example of using:
out = F(x(1:8));
plot(F,x,y);

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by