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 Center および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by