x=[-20:0.5:20]
gzx = 2*G*deltaMzylinder*(zs/(zs^2+x.^2))
plot(x,gzx)
Error using /
Matrix dimensions must agree.

 Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 21 Mär. 2021

1 Stimme

We would need to know what zs is to say for certain, but the most likely fix is to use elementwise division, "./".

3 Kommentare

nikola oljaca
nikola oljaca am 21 Mär. 2021
thx a lot zs is just a constant bro
nikola oljaca
nikola oljaca am 21 Mär. 2021
really nice it worked i am so happy
nikola oljaca
nikola oljaca am 21 Mär. 2021
PS : zs is the depth to my center gravity

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by