analysis using wavelet coherence

10 Ansichten (letzte 30 Tage)
Sitti Nur Zayanti
Sitti Nur Zayanti am 30 Sep. 2024
Kommentiert: nick am 3 Okt. 2024
i want to perfom rossby wave detection using the wavelet coherence, but when i running the code there is always an error that says "error in wt.m time must be constant". when i change the year in the first clumn to numbers, the code runs. but when I include the first column as the years, the error massage appears. My data consists of 20 years,is there something wrong with my data?
  5 Kommentare
Sitti Nur Zayanti
Sitti Nur Zayanti am 1 Okt. 2024
hi nick,
I also experienced the same issue as shown in the image you sent when running my data. Coincidentally, the relevant script file is from the wavelet coherence, and I am using wtcdemo as the main script.
Here is the file, if the time column is replaced with regular numbers. This is what confuses me about the ‘formatts’ function.
nick
nick am 3 Okt. 2024
Hi Sitti,
In the 'wtcdemo' file, it seems that 'boxpdf' is a user-defined function.
I am unable to reproduce the error, "error in wt.m time must be constant", due to the absence of code related to the custom functions. Could you kindly share the 'formatts' function file? You can use the following command in the MATLAB command window to find where the file is located:
which formatts %where formatts is the name of .m file

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu AI for Signals and Images finden Sie in Help Center und File Exchange

Produkte


Version

R2014b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by