Sine curve fitting from given dataset using matlab
3 views (last 30 days)
Show older comments
Hi all, I have a data set like this(given below) time and flux is given, now i would like to fit a sine curve for this data using matlab. Need help on this pls
#time(sec) flux(arbitrary)
0.00000 0.579560
2.67300 2.22622
5.34600 1.60199
8.01900 0.862325
10.6920 0.252016
13.3650 2.73104
16.0380 3.23721
18.7110 1.83635
21.3840 1.34741
24.0570 1.05398
26.7300 4.36905
29.4030 2.54037
32.0760 3.14176
34.7490 1.16241
37.4220 2.43860
40.0950 1.60663
42.7680 0.142770
45.4410 -1.13314
48.1140 -0.675083
50.7870 -0.828353
53.4600 -0.0228402
56.1330 -2.31812
58.8060 -0.0284982
61.4790 -1.40763
64.1520 -1.90058
66.8250 -0.148608
69.4980 -1.64220
72.1710 0.498019
74.8440 2.53692
77.5170 0.831666
80.1900 0.917511
82.8630 1.66403
85.5360 0.506634
88.2090 2.26076
90.8820 2.41708
93.5550 4.55650
96.2280 5.14227
98.9010 5.40334
101.574 4.12464
104.247 3.97120
106.920 3.81750
109.593 5.18905
112.266 4.44048
114.939 2.54991
117.612 3.05267
120.285 3.58386
122.958 5.07710
125.631 2.74056
128.304 3.20745
130.977 2.66973
133.650 2.70648
136.323 3.56613
138.996 1.00956
141.669 1.38451
144.342 -1.79701
147.015 0.840963
149.688 -0.179059
152.361 1.89431
155.034 1.63342
157.707 0.966543
160.380 -0.267579
163.053 0.769329
165.726 2.15279
168.399 4.20681
171.072 5.12451
173.745 5.14108
176.418 4.81595
179.091 4.08248
181.764 4.55317
184.437 6.39783
187.110 6.91755
189.783 6.98784
192.456 5.09507
195.129 4.46909
197.802 4.31043
200.475 5.04492
203.148 5.05108
205.821 5.33050
208.494 5.39089
211.167 2.53055
213.840 4.01190
216.513 2.93709
219.186 4.52998
221.859 1.23027
224.532 3.98977
227.205 2.84638
229.878 0.979774
232.551 1.01186
235.224 1.44851
237.897 2.36949
240.570 4.01831
243.243 2.29769
245.916 3.59893
248.589 2.81890
251.262 6.90366
253.935 6.04874
256.608 4.70173
259.281 6.66682
261.954 7.32802
264.627 6.97223
0 Comments
Accepted Answer
More Answers (1)
Ashikur
on 17 Oct 2011
You can use curve fitting tool box
1. Type 'cftool' in command prompt
2. Choose option they are very interactive
3. Also check the documentation
0 Comments
See Also
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!