Cody

Solution 2625700

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

Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in user_function (line 5) PB = inv(T)*[P';1];

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

Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in user_function (line 5) PB = inv(T)*[P';1];

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

Error using vertcat Dimensions of arrays being concatenated are not consistent. Error in user_function (line 5) PB = inv(T)*[P';1];