Cody

Solution 1722543

Submitted on 7 Feb 2019 by James
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(P) == [2 1]), 'The point should be described by a 2x1 vector')

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

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