Message Boards Message Boards

0
|
3054 Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Plot a WaveletScalogram?

Posted 4 years ago

Hi,

Where did I go wrong?

S1 = Table[Sin[2 i], {i, 0, 50 Pi}] // N

 WaveletScalogram[S1, Frame -> True, LabelStyle -> 24, 
  FrameTicks -> {{ticks, Automatic}, {{26, 52, 78, 104, 130}, 
     Automatic}}, GridLines -> {{26, 52, 78, 104, 130}, None}, 
  FrameLabel -> {"X", "Y)"}, ColorFunction -> "LightTemperatureMap", 
  ImageSize -> 500];
POSTED BY: Alex Teymouri
3 Replies

Hi Alex,

the argument of WaveletScalogram should be some wavelet data, e.g.:

S1 = ContinuousWaveletTransform[Table[Sin[2 i], {i, 0, 50 Pi}]];
S1 // Head
(*  Out:   ContinuousWaveletData   *)

Furthermore the semiocolon after WaveletScalogram[S1, ...]; might be unwanted ...

POSTED BY: Henrik Schachner
Posted 4 years ago

Dear Henrik,

I'm not sure I asked my question correctly. Sorry!

In the civil engineering field and especially time series analysis having a wavelet power spectrum and Global wavelet spectrum is a very important issue. Please see the attached figure for example. I can plot these kinds of graphs with Matlab, but strongly I would like to do it by powerful Mathematica. I did your solution for real air temperature data. please see the enclosed notebook too.

Thank you so much.

enter image description here

Attachments:
POSTED BY: Alex Teymouri

Dear Alex,

I have to admit that I do not have much experience using wavelets. And I am afraid at the moment in Mathematica there is no out-of-the-box-power-spectrum-plot function (but I might be wrong!). So my guess is you have to use the transformation data and plot them the way you need. Maybe (as an inspiration) the attached notebook might be useful - but again: my experience here is very limited!

Regards -- Henrik

Attachments:
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract