Equal weight discretization. Please help!
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am a brand new matlab user thus facing quite some difficulties. I have a function:
S(w)=5/16*Hs^2.*w.^4.*wp^(-5).*exp(-5/4.*(w./wp).^(-4));
Some of you will recognize it as a Pierson_Moskowitz wave energy spectrum. The thing is that I want to use equal area discretization in order to generate time signal. I think that using while loop could help me out. I could loop over frequency (w) axis as long as the integral of S(w) function is less than prescribed value (certain fraction of the total area under the curve). Then the problem comes in. I do not know how to tell Matlab that in the next loop it should start using frequency value (w) from the point where in previous loop the integral of S(w) reached desired value. Also, I do not know how to get the the frequency values at which while loop was met.
Please help me out or give some hint how to solve it as I have been struggling with this for a few week already.
I appreciate any help!
2 件のコメント
Star Strider
2014 年 10 月 19 日
Would taking the inverse Fourier transform (or series) work to transform it into the time domain?
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!