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);

Antworten (1)

Rik
Rik am 21 Jan. 2022

1 Stimme

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

Kategorien

Mehr zu Graph and Network Algorithms finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 21 Jan. 2022

Beantwortet:

Rik
am 21 Jan. 2022

Community Treasure Hunt

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

Start Hunting!

Translated by