[Laplacian function in Matlab2017] Undefined function 'laplacian' for input arguments of type 'double'.
Mostrar comentarios más antiguos
Hello,
What is wrong with the following code. I got an input error argument for laplacian.
n = 1000;
x = randperm(n);
gs = 450; group1 = x(1:gs); group2 = x(gs+1:end);
p_group1 = 0.5; p_group2 = 0.4; p_between = 0.1;
A(group1, group1) = rand(gs,gs) < p_group1;
A(group2, group2) = rand(n-gs,n-gs) < p_group2;
A(group1, group2) = rand(gs, n-gs) < p_between;
A = triu(A,1);
A = A + A';
spy(A);
L = laplacian(A);
I got the following error :
Undefined function 'laplacian' for input arguments of type 'double'.
l'm using Matlab2017b
Thank you
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!