What is the s_rot() function ?

조회 수: 1 (최근 30일)
Mohit Kumar
Mohit Kumar 2019년 11월 24일
댓글: Mohit Kumar 2019년 11월 25일
I came across this code in a textbook (Multibody Dynamics, Nikravesh P.E.) -
% Example 2.3
% Define vectors a and b
a = [2 3]'; b = [4 5]';
% Compute the magnitude of the cross producsts a x b and b x a
c = s_rot(a)'*b
d = s_rot(b)'*a
I could not find any documentation about this function which is very strange!

채택된 답변

the cyclist
the cyclist 2019년 11월 24일
That is not part of base MATLAB or any MathWorks toolbox, as far as I could find. Googling on
"s_rot" matlab
found a few hits (including the book you mention). Maybe they define that function earlier on the book, or in an appendix, or they have a github repository of code?
  댓글 수: 1
Mohit Kumar
Mohit Kumar 2019년 11월 25일
Oh right, it is just a function they have defined. How stupid of me!
I'm not used to using others' codes (I'm just starting out :)
Thanks for your answer!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by