visualize trend of temperature and rainfall data in matlab

11 views (last 30 days)
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
jonathan
jonathan on 23 Jul 2012
You are right I can use Spreadsheets but the question: I have a MODIS data which I want to present in Matlab and then super-impose the climate data to compare with the NDVI in the MODIS data. MODIS is in 2D and the climate data is in 1D. Alot of research is going on in this area and worth to the research community. I want to present the MODIS data in conjunction with climate data in Matlab and I want to use the wavelets to display and superimpose both datasets for comparison to determine drought.
Walter Roberson
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.

Sign in to comment.

Answers (1)

Wayne King
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);

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!