visualize trend of temperature and rainfall data in matlab
11 views (last 30 days)
Show older comments
I have mean monthly rainfall of 5 years. In all the data has 60 rows in a txt file. I want to use wavelets in Matlab to visualize the trend in these datasets. Can anyone help me please. Thank you
3 Comments
Walter Roberson
on 23 Jul 2012
jonathan, please only flag content that is inappropriate for the forum, so that the Editors can review the content and edit or remove it.
The person who wrote the comment you flag is not notified about the flag.
Answers (1)
Wayne King
on 22 Jul 2012
If you want to use the scaling coefficients from a wavelet decomposition, then use wavedec() followed by wrcoef() with the 'a' option.
Which level and which wavelet to use depends very much on the kind of trend you expect.
n = 0:0.01:1;
y = 2*n+randn(size(n));
[C,L] = wavedec(y,5,'sym4');
A5 = wrcoef('a',C,L,'sym4',5);
plot(n,y); hold on;
plot(n,A5,'r','linewidth',2);
0 Comments
See Also
Categories
Find more on Denoising and Compression in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!