Continuous Wavelet 2D Plot Help.
1 回表示 (過去 30 日間)
古いコメントを表示
I have data of in the form of Matrix, the period is 30 and month range is of 12, I want to plot it in Continuous Wavelet 2D Plot. I followed this link but couldn't actually get it working, Kindly help me in generating it.
Sample data is:
1 23 23
2 56 98
3 12 12
4 65 65
5 89 89
6 52 52
7 41 45
8 36 36
9 98 98
10 74 74
11 22 98
12 3 3
13 36 36
14 45 78
15 12 12
16 3 3
17 5 23
18 8 36
19 7 7
20 1 1
21 6 89
22 1 1
23 1 1
24 6 6
25 9 9
26 98 98
27 4 4
28 4 4
29 6 6
30 9 9
31 6 6
The type of image I am expecting is this:
回答 (1 件)
KSSV
2021 年 5 月 7 日
Let A be your data matrix.
%% Structured grid
x = A(:,1) ;
y = A(:,2) ;
z = A(:,3) ;
nx = length(unique(x)) ;
ny = length(unique(y)) ;
X = reshape(x,nx,ny) ;
Y = reshape(y,nx,ny) ;
Z = reshape(z,nx,ny) ;
pcolor(X,Y,Z)
%% unstructured grid
x = A(:,1) ;
y = A(:,2) ;
z = A(:,3) ;
m = 100 ;n = 100 ;
x = linspace(min(x),max(x),m) ;
y = linspace(min(y),max(y),n) ;
[X,Y] = meshgrid(x,y,z,X,Y) ;
pcolor(X,Y,Z)
3 件のコメント
KSSV
2021 年 5 月 7 日
I have given you two methods....try the other one....If not attach your complete data.
参考
カテゴリ
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!