adjmat unrecognized function in Matlab

2 visualizzazioni (ultimi 30 giorni)
Diana
Diana il 15 Feb 2021
Risposto: Jian Yuan il 19 Mar 2021
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 Commenti
Diana
Diana il 15 Feb 2021
The theory is the part of the differential, but the adjmat is not related to theory
Walter Roberson
Walter Roberson il 15 Feb 2021
At the top of your function put in
adjmat = @(M) mat2gray(M);

Accedi per commentare.

Risposte (2)

Matt J
Matt J il 15 Feb 2021
Is adjmat supposed to be computing the adjugate of the matrix t5. If so, you might be able to use this instead,

Jian Yuan
Jian Yuan il 19 Mar 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).

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by