error for using *

조회 수: 2 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by