The graph wont be appear

1 次查看(过去 30 天)
NEIL Alfred
NEIL Alfred 2022-1-21
回答: Rik 2022-1-21
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
Do what the error message tells you to do:
y= t.^2 .* cos(t);

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by