The graph wont be appear

1 visualizzazione (ultimi 30 giorni)
NEIL Alfred
NEIL Alfred il 21 Gen 2022
Risposto: Rik il 21 Gen 2022
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);

Risposte (1)

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

Categorie

Scopri di più su Graph and Network Algorithms in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by