Why I do get error Matrix dimensions must agree?
t = (0:5:60);
a = (0:10:100);
s = (a.*t.^2)./2;
p1 = plot(a,s);

 Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 3 Mai 2018
Bearbeitet: Ameer Hamza am 3 Mai 2018

0 Stimmen

The number of the elements in t and a must be equal. It appears you meant to write
t = 0:5:50;

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by