What is the s_rot() function ?

1 Ansicht (letzte 30 Tage)
Mohit Kumar
Mohit Kumar am 24 Nov. 2019
Kommentiert: Mohit Kumar am 25 Nov. 2019
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!

Akzeptierte Antwort

the cyclist
the cyclist am 24 Nov. 2019
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 Kommentar
Mohit Kumar
Mohit Kumar am 25 Nov. 2019
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!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by