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

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 3 Mai 2018
Modifié(e) : Ameer Hamza le 3 Mai 2018

0 votes

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

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by