visualize trend of temperature and rainfall data in matlab
Afficher commentaires plus anciens
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 commentaires
Image Analyst
le 22 Juil 2012
Why wavelets? Why not just display as an image or surface plot or 2D bar chart or some other conventional method of displaying data?
jonathan
le 23 Juil 2012
Walter Roberson
le 23 Juil 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.
Réponses (1)
Wayne King
le 22 Juil 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);
Catégories
En savoir plus sur Continuous Wavelet Transforms dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!