I have a sine function y = a*sin(bx-c)+d and I have 4 points on the function: P1(0.840,0.730) P2(1.516,0.594) P3(2.879,0.236) P4(3.365,0.652)?

18 次查看(过去 30 天)
So I get the following equations:
0.730=a*sin(0.840b-c)+d
0.594=a*sin(1.516b-c)+d
0.236=a*sin(2.879b-c)+d
0.652=a*sin(3.365b-c)+d
Could someone please help me solve for the variables a,b,c,d? Thank you!

采纳的回答

Torsten
Torsten 2014-11-25
I get
a=-0.386091187
b=-2.36473575
c=-0.96663067
d=0.401059696
Of course, since sin(x)=sin(x+2*Pi), the constant c can be changed to c+2*Pi, c-2*Pi, c+4*Pi, c-4*pi etc.
Best wishes
Torsten.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Physics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by