gsp_plot_signal_spectral(G,signal); gsp_plot_signal_spectral(G,signal,param);
G | Graph or laplacian eigenvalues |
f_hat | Graph signal in the spectral domain. |
param | Optional variable containing additional parameters. |
non none
'gsp_plot_signal_spectral(G,signal)' plots a graph signal in the graph Fourier domain.
Warning: to use this function, the Fourier basis of the graph should be first computed. You can do it with:
G = gsp_full_eigen(G);
Example:
N = 32; G = gsp_path(N); G = gsp_compute_fourier_basis(G); f = sin((1:N)'*2*pi*4/N); fhat = gsp_gft(G,f); gsp_plot_signal_spectral(G,fhat);