adjmat unrecognized function in Matlab
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
Walter Roberson
2021 年 2 月 15 日
At the top of your function put in
adjmat = @(M) mat2gray(M);
回答 (2 件)
Matt J
2021 年 2 月 15 日
Is adjmat supposed to be computing the adjugate of the matrix t5. If so, you might be able to use this instead,
0 件のコメント
Jian Yuan
2021 年 3 月 19 日
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 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!