what is wrong with this code?

Hi
I get the following error when I run this code:
''Error using /
Matrix dimensions must agree.''

回答 (1 件)

Torsten
Torsten 2022 年 11 月 8 日

0 投票

Most probably, you will have to change all / and * and ^ to ./ and .* and .^ in your code (elementwise operations instead of matrix operations).

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2022 年 11 月 8 日

回答済み:

2022 年 11 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by