how to make a CWT like plot - spectral plot
12 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a 3d matrix Z with the elements (t,f,a)
t= time
f= instantaneous frequency
a= instantaneous amplitude
(t,f,a) = at time t, the frequency is f and the amplitude is a. I want to make a continuous wavelet like plot of this or in general I want to make a colorful spectral plot out of this information, where t will be the x axis, f will be the y axis and the color of the point will depend on a.
I would be grateful if you could help me how to work this out.
Thanks!
2 个评论
Walter Roberson
2011-6-29
If it was a 3D matrix, the times and frequencies would be implicit in the axes. It sounds to me as if what you have is an N x 3 list of (t,f,a) values instead. Were the times and frequency sampled over regular intervals, or are the points irregularly spaced?
采纳的回答
Walter Roberson
2011-6-29
You can use imagesc() or scatter() to create those kinds of plots. Scatter would be easier to implement but since your coordinates are regularly spaced you could grid your data fairly easily. Or use griddata() to do the gridding for you.
There is pcolor() as well, but that interpolates colors between points, giving an (N-1) x (M-1) output rather than an N x M output.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Continuous Wavelet Transforms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!