Cody

Solution 1215292

Submitted on 18 Jun 2017 by Said BOUREZG
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
x=[2 -16 384 -18432 1474560]; n=8; y=[2 -16 384 -18432 1474560 0 0 0]; assert(isequal(procrustes(x,n),y))

ans = 2 -16 384 -18432 1474560 0 0 0

2   Pass
x=[8 -96 3072 -184320 17694720]; n=0; assert(isempty(procrustes(x,n)))

ans = 1×0 empty double row vector

3   Pass
x='0.314 arcseconds'; n=12; y='0.314 arcsec'; assert(isequal(procrustes(x,n),y))

ans = '0.314 arcsec'

4   Pass
x='credible fishers'; n=20; y='credible fishers '; assert(isequal(procrustes(x,n),y))

ans = 99 114 101 100 105 98 108 101 32 102 105 115 104 101 114 115 32 32 32 32 ans = 'credible fishers '

Suggested Problems

More from this Author11