Cody

Problem 46669. Rotation matrix of a sequence of 3D points

Solution 3366388

Submitted on 24 Oct 2020 by Rafael S.T. Vieira
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
Rotation_Matrix(:,:,1) = [0.9129 0.8099 0.0542; 0.4817 0.1868 0.6090; 0.8518 0.2472 0.7772]; Rotation_Matrix(:,:,2) = [0.5111 0.5009 0.6256; 0.0278 0.3320 0.5751; 0.9904 0.1739 0.7510]; Vector(:,:,1) = [0.1535 0.3568 0.1440]; Vector(:,:,2) = [0.8506 0.3379 0.2752]; y_correct = [0.4346 0.7166; 0.2266 0.5861; 0.3375 0.9332]; assert(isequal(RotTimesVec(Rotation_Matrix,Vector),y_correct))

ans = 0.4346 0.7166 0.2266 0.5861 0.3375 0.9332

Suggested Problems

Community Treasure Hunt

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

Start Hunting!