This solution is outdated. To rescore this solution, sign in.
i aVec er 9 blevet til 8 i løsningen
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
aVec = [3.14 15 8 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.1204
183.8478
|
2 | Fail |
%%
aRef = [3.14 15 9 26];
[yVec aVec] = MyFunc();
assert(isequal(aRef,aVec))
Error: Assertion failed.
|
3 | Pass |
%%
bRef = [2.71;8;28;182];
[yVec aVec bVec] = MyFunc();
assert(isequal(bRef,bVec))
|
552 Solvers
543 Solvers
Determine Whether an array is empty
561 Solvers
631 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
377 Solvers