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

 채택된 답변

Cris LaPierre
Cris LaPierre 2021년 3월 21일

1 개 추천

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

댓글 수: 3

nikola oljaca
nikola oljaca 2021년 3월 21일
thx a lot zs is just a constant bro
nikola oljaca
nikola oljaca 2021년 3월 21일
really nice it worked i am so happy
nikola oljaca
nikola oljaca 2021년 3월 21일
PS : zs is the depth to my center gravity

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2021년 3월 21일

댓글:

2021년 3월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by