I keep getting this error
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 '.*'.
Error in un (line 3)
y= t.^2 * cos(t);

답변 (1개)

Rik
Rik 2022년 1월 21일

1 개 추천

Do what the error message tells you to do:
y= t.^2 .* cos(t);

카테고리

도움말 센터File Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

태그

질문:

2022년 1월 21일

답변:

Rik
2022년 1월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by