This is where navigation should be.


GSP_GRAD_MAT - Gradient sparse matrix of the graph G

Usage

D = gsp_gradient_mat(G);

Input parameters

G Graph structure

Output parameters

D Gradient sparse matrix

Description

This function return the gradient matrix. To be more effiecient, call the function:

G = gsp_adj2vec(G)

before this function.

Example:

N = 40;
G = gsp_sensor(N);
G = gsp_adj2vec(G);
D = gsp_grad_mat(G);