This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1 2 3 4 5];
y_correct = [9 25];
assert(isequal(concat_squared(x),y_correct))
ans =
9 25
|
2 | Pass |
%%
x = [6 7 8 9 10];
y_correct = [64 100];
assert(isequal(concat_squared(x),y_correct))
ans =
64 100
|
3 | Pass |
%%
x=[3 8 9 6 7];
y_correct=[81 49];
assert(isequal(concat_squared(x),y_correct))
ans =
81 49
|
Find the sum of all the numbers of the input vector
31951 Solvers
Compute a dot product of two vectors x and y
750 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Create matrix of replicated elements
321 Solvers
462 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!