Limit angle in [-90, 90] degree
이전 댓글 표시
As I was using ode45 to solve ODEs, I do not know to limit the result in [-90,90] degree. Anyone may provide some help?
댓글 수: 4
Stephen23
2022년 5월 2일
In case anyone was wondering about the text: https://en.wikipedia.org/wiki/Halfwidth_and_Fullwidth_Forms_(Unicode_block)
Walter Roberson
2022년 5월 2일
What should happen if the angle would go outside that range?
Star Strider
2022년 5월 3일
I have no idea what the code is, however using 90 times the tanh function could be one way of limiting the angle. This has the advatage of being differentiable rather than using a stepwise limit that would not be differentiable.
DGM
2024년 6월 6일
For sake of searchability, I fixed the title. The body text remains as a curiosity for sake of Stephen's link, which is a very appreciated little tangent.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 MATLAB Parallel Server에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!