Cody

Solution 1985655

Submitted on 22 Oct 2019 by Hoang Vu
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
aVec = [3.14 15 9 26]; bVec = [2.71;8;28;182]; ref = sqrt((aVec').^2+bVec.^2) user = MyFunc(); assert(isequal(user,ref))

ref = 4.1477 17.0000 29.4109 183.8478 aVec = 3.1400 15.0000 9.0000 26.0000 bVec = 2.7100 8.0000 28.0000 182.0000 yVec = 4.1477 17.0000 29.4109 183.8478

2   Pass
aRef = [3.14 15 9 26]; [yVec aVec] = MyFunc(); assert(isequal(aRef,aVec))

aVec = 3.1400 15.0000 9.0000 26.0000 bVec = 2.7100 8.0000 28.0000 182.0000 yVec = 4.1477 17.0000 29.4109 183.8478

3   Pass
bRef = [2.71;8;28;182]; [yVec aVec bVec] = MyFunc(); assert(isequal(bRef,bVec))

aVec = 3.1400 15.0000 9.0000 26.0000 bVec = 2.7100 8.0000 28.0000 182.0000 yVec = 4.1477 17.0000 29.4109 183.8478