How i divide a Constant with a Matrix ?

9 visualizaciones (últimos 30 días)
nikola oljaca
nikola oljaca el 21 de Mzo. de 2021
Comentada: nikola oljaca el 21 de Mzo. de 2021
x=[-20:0.5:20]
gzx = 2*G*deltaMzylinder*(zs/(zs^2+x.^2))
plot(x,gzx)
Error using /
Matrix dimensions must agree.

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 21 de Mzo. de 2021
We would need to know what zs is to say for certain, but the most likely fix is to use elementwise division, "./".
  3 comentarios
nikola oljaca
nikola oljaca el 21 de Mzo. de 2021
really nice it worked i am so happy
nikola oljaca
nikola oljaca el 21 de Mzo. de 2021
PS : zs is the depth to my center gravity

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by