example m = rotm(v,angle)
v := a row vector of the axis of rotation.
angle := angle of rotation about the axis.
It uses six subroutines orthv.m,gramsch.m,
Mathan Chandran (2021). Rotation matrix (https://www.mathworks.com/matlabcentral/fileexchange/56828-rotation-matrix), MATLAB Central File Exchange. Retrieved .
There is no useful documentation. It replies a 4x4 matrix for a 4D input, but a hyper-plane to rotate in is not determined uniquely by one vector. Without further explanations it is hard to understand, what is calculated exactly. Please add meaningful comments and a help section.
Inspired: Rotation Forest
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!