How can I do this integration??

Hi guys. I want to solve the below integration problem by matlab. I cannot get the correct answer by integration function.

댓글 수: 7

Torsten
Torsten 2022년 7월 25일
Please describe and write down your problem in a comprehensible form.
I tried to integrate this problem to get the solution as described picture from 1st line to 2nd line. However, I couldn't get the answer.
syms G J S Theta_T STheta_T
F = Theta_T*STheta_T
ANS = -int(G*J/S^2*F,0,S)
Walter Roberson
Walter Roberson 2022년 7월 26일
you did not indicate which variable to integrate over
syms G J S Theta_T STheta_T y
F = Theta_T*STheta_T
F = 
ANS = -int(G*J/S^2*F,y,0,S)
ANS = 
AppleNg
AppleNg 2022년 7월 26일
Thank you so much!!! I did it now.
Also, I have another question. Instead of writing it as STheta_T, is there a way to describe it as greek symbol and compute it in the form of greek symbol? Thank you for helping me out! I really appreciate it.
Walter Roberson
Walter Roberson 2022년 7월 26일
When you use the Live editor, then for the display of symbolic expressions, each identifier is examined. The identifier is split at _ and . Each segment is examined, and if it is the English name of a Greek letter then the corresponding Greek symbol is rendered. For components after the first, some key words such as dot and hat are recognized and indicate accents modifying what is rendered.
You cannot, for example, use β itself as an identifier but you can use beta and in appropriate context it will render as β
You cannot get an identifier to render as sθ or δθ but if you used delta_theta it should render as δ with subscript θ
Again this is only Livescript

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Labels and Annotations에 대해 자세히 알아보기

태그

질문:

2022년 7월 25일

댓글:

2022년 7월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by