Test  Status  Code Input and Output 

1  Pass 
%%
a = [2 3 4];
assert(isequal(isItSquared(a),true))
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
1

2  Pass 
%%
a = [20:30];
assert(isequal(isItSquared(a),false))
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0

3  Pass 
%%
a = [1];
assert(isequal(isItSquared(a),true))
b =
1

4  Pass 
%%
a = [6 10 12 14 36 101];
assert(isequal(isItSquared(a),true))
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
1

5  Pass 
%%
a = [6 10 12 14 101];
assert(isequal(isItSquared(a),false))
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0
b =
0

Find the sum of all the numbers of the input vector
31955 Solvers
Find all elements less than 0 or greater than 10 and replace them with NaN
13051 Solvers
1763 Solvers
Project Euler: Problem 1, Multiples of 3 and 5
1491 Solvers
Create a Multiplication table matrix...
283 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!