adjmat unrecognized function in Matlab
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I'm trying to run a code and it has the function
t5 = diff(lambda);
t5 = adjmat(t5);
but I got the error that adjmat unrecognized function , so what is the problem?
6 comentarios
Walter Roberson
el 15 de Feb. de 2021
At the top of your function put in
adjmat = @(M) mat2gray(M);
Respuestas (2)
Matt J
el 15 de Feb. de 2021
Is adjmat supposed to be computing the adjugate of the matrix t5. If so, you might be able to use this instead,
0 comentarios
Jian Yuan
el 19 de Mzo. de 2021
After diff function, the dimention of an array decreased by 1. I checked here Adjmat(t5) seems to align that. So you may try t5(:,1) = [] to replace t5 = adjmat(t5).
0 comentarios
Ver también
Categorías
Más información sobre Startup and Shutdown en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!