The graph wont be appear

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

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

类别

在 帮助中心 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息

标签

回答:

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