Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
aVec = [3.14 15 9 26];
bVec = [2.71;8;28;182];
aMat = ones(9,9)*2;
ref = (aVec*bVec)*aMat^2;
user = MyFunc();
assert(isequal(user,ref))
|
2 | Pass |
%%
aRef = [3.14 15 9 26];
[xMat aVec] = MyFunc();
assert(isequal(aRef,aVec))
|
3 | Pass |
%%
bRef = [2.71;8;28;182];
[xMat aVec bVec] = MyFunc();
assert(isequal(bRef,bVec))
|
4 | Pass |
%%
aRef = ones(9,9)*2;
[xMat aVec bVec aMat] = MyFunc();
assert(isequal(aRef,aMat))
|
What is the distance from point P(x,y) to the line Ax + By + C = 0?
277 Solvers
299 Solvers
Sum the numbers on the main diagonal
453 Solvers
Count decimal digits of a number
176 Solvers
274 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!