Cody

Problem 44823. Relative points in 2D: problem 1

Solution 2776645

Submitted on 4 Aug 2020 by Nikolai Flowers
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
assert(all(size(PB) == [2 1]), 'The point should be described by a 2x1 vector')

2   Pass
assert(isreal(PB), 'The point should be described by a vector of real, not complex, numbers');

3   Pass
PBref = R'*P - R'*t; assert( all(abs(PB-PBref) < 0.001), 'The relative coordinates are not correct')

Suggested Problems

More from this Author16

Community Treasure Hunt

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

Start Hunting!