adjmat unrecognized function in Matlab

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
Walter Roberson 2021 年 2 月 15 日
What is class(lambda) ? And what do you expect adjmat() to caclulate?
Walter Roberson
Walter Roberson 2021 年 2 月 15 日
Seems to be from a published suite by CRC press that appears in multiple textbooks, with relevant function names such as totdisp_SMF.m
However I cannot find any adjmat() function that seems likely to be relevant.
Diana
Diana 2021 年 2 月 15 日
Yes, this code is froma textbook for optical communication
Walter Roberson
Walter Roberson 2021 年 2 月 15 日
What is it expected that the function will do?
If you match the code to the theory, what role is adjmat() playing there?
Diana
Diana 2021 年 2 月 15 日
The theory is the part of the differential, but the adjmat is not related to theory
Walter Roberson
Walter Roberson 2021 年 2 月 15 日
At the top of your function put in
adjmat = @(M) mat2gray(M);

サインインしてコメントする。

回答 (2 件)

Matt J
Matt J 2021 年 2 月 15 日

0 投票

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 2021 年 3 月 19 日

0 投票

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).

カテゴリ

ヘルプ センター および File ExchangeMathematics についてさらに検索

製品

タグ

質問済み:

2021 年 2 月 15 日

回答済み:

2021 年 3 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by