Borrar filtros
Borrar filtros

how can I do calculations using an array as a result and dividing each element of an array for an expression

1 visualización (últimos 30 días)
Hello,
I would like to know how can I do calculations using an array as a result and dividing each element of an array for an expression I am using the following code:
n=10
for j=drange(1:n)
P(j)=-w(j)/(y*(4*y^2-3*u^2)*(7*r*z))
end
All the variable values are previously defined
However, the following error occurs:
Error using / Matrix dimensions must agree.
Error in matlab (line 42) for j=drange(1:n)
Can anyone help me?
regards,
Hugo

Respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by