matrix dimension must agree

I have been facing issues to get this equation to work out.
a = (5:0.1:20);
b = (15:0.2:40);
y = (30:0.5:40);
P = 1 + (cos(a/5)).*(sin(b/5))-((y.^2)/(a.*(b.^3)));

Respuestas (1)

madhan ravi
madhan ravi el 3 de Jun. de 2020

0 votos

a = linspace(5,20);
b = linspace(15,40);
y = linspace(30,40);
P = 1 + (cos(a/5)).*(sin(b/5))-((y.^2)./(a.*(b.^3)));

La pregunta está cerrada.

Etiquetas

Preguntada:

el 3 de Jun. de 2020

Cerrada:

el 20 de Ag. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by