Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 1;
y_correct = 1/1;
assert(isequal(your_fcn_name(x),y_correct))
ans =
1
|
2 | Pass |
%%
x = 0:2;
y_correct = ones(1,3);
assert(isequal(your_fcn_name(x),y_correct))
ans =
1 1 1
|
3 | Pass |
%%
x = -100:100;
y_correct = zeros(1,201);
assert(isequal(your_fcn_name(x),y_correct))
ans =
Columns 1 through 16
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 17 through 32
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 33 through 48
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 49 through 64
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 65 through 80
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 81 through 96
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 97 through 112
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 113 through 128
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 129 through 144
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 145 through 160
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 161 through 176
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 177 through 192
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 193 through 201
0 0 0 0 0 0 0 0 0
|
151 Solvers
1309 Solvers
Check if number exists in vector
4467 Solvers
Generate a vector like 1,2,2,3,3,3,4,4,4,4
3617 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!