Matrix dimesions must agree.

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

 Respuesta aceptada

Ameer Hamza
Ameer Hamza el 3 de Mayo de 2018
Editada: Ameer Hamza el 3 de Mayo de 2018

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 3 de Mayo de 2018

Editada:

el 3 de Mayo de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by