error for using *

11 Ansichten (letzte 30 Tage)
Tatyana Adamson
Tatyana Adamson am 30 Apr. 2020
Beantwortet: Star Strider am 30 Apr. 2020
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 '.*'.

Antworten (1)

Star Strider
Star Strider am 30 Apr. 2020
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.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by