error for using *

9 ビュー (過去 30 日間)
Tatyana Adamson
Tatyana Adamson 2020 年 4 月 30 日
回答済み: Star Strider 2020 年 4 月 30 日
Mmax = 90.*N+16200*D*b*Gam;
Error using *
Incorrect dimensions for matrix multiplication. Check that
the number of columns in the first matrix matches the number
of rows in the second matrix. To perform elementwise
multiplication, use '.*'.

回答 (1 件)

Star Strider
Star Strider 2020 年 4 月 30 日
Assuming that ‘D’, ‘b’, and ‘Gam’ are all the same sizes, do what the error message tells you and use .* instead of * for the multiplications.

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by