Pre-define some weights/phase using the fit function to fit a fourier series to data
2 次查看(过去 30 天)
显示 更早的评论
I am trying to decompose some data into a Fourier Series using the fit function, such that:
f = fit(x,y,'fourier4')
I would like to be able to pre-define some of the outputs for this fit (i.e. set odd fourier coefficients to zero and pre-define a phase term) and then have the function invert for the remaining undefined components. Is this possible? And if it cant be done using the fit function does anyone know of another way to do it?
The problem I am working on involves decomposing azimuthally varying pre-stack seismic data into a fourier series where azimuth is the main variable, however incident angle is a secondary variable and at any given location in space I want the fourier weights to be a function of incident angle but the phase term to be constant at all incident angles. My initial thought was to fit the data at all incident angles simultaneously to get the (constant) phase term, and then to re-fit the data at each incident angle separately while forcing the phase term to be constant to find the weights that vary with incident angle.
UPDATE: I have been playing around with making a custom non-linear fitting function using the 'fittype' function to attempt to make a fit specific to my needs. I havent gotten it quite right yet but feel I am on the right path. Any suggestions would be appreciated.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Seismology 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!