Thanks very much for the reply. That seemed to get me past the bit I was stuck on. However, now I get this error message. I have not been able to use the data from the example so I'm using my own data which is just a time series in a vector.
>> fs = 1000; >> [cfs,f] = cwt(data,fs,'morl',[14,200]); helperCWTTimeFreqPlot(cfs,tquad,f,'surf','CWT of Quadratic Chirp','Seconds','Hz') Error using cwt (line 296) The sampling period must be specified to obtain frequencies and the 'scal' flag must be specified to obtain the scalogram.
Undefined function or variable 'tquad'.
Did you mean: >> helperCWTTimeFreqPlot(cfs,quad,F,'surf','CWT of Quadratic Chirp','Seconds','Hz') Not enough input arguments.
Error in quad (line 57) f = fcnchk(funfcn);
I'm not sure where I should specify the sampling period in the code. Having read the documentation , my understanding is I should specify the the sampling frequency.