Good job!
keep up
nice
Nice!
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = rand(1,10);
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
y =
0.8474
y =
0.8474 0.6248
y =
0.8474 0.6248 0.2514
y =
0.8474 0.6248 0.2514 0.7104
y =
0.8474 0.6248 0.2514 0.7104 0.7750
|
2 | Pass |
x = rand(1,100);
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
y =
0.0840
y =
0.0840 0.1281
y =
0.0840 0.1281 0.5642
y =
0.0840 0.1281 0.5642 0.9389
y =
0.0840 0.1281 0.5642 0.9389 0.5486
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601
y =
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Column 18
0.2909
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 19
0.2909 0.2279
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 20
0.2909 0.2279 0.5726
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 21
0.2909 0.2279 0.5726 0.3020
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 22
0.2909 0.2279 0.5726 0.3020 0.8618
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 23
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 24
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 25
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 26
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 27
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 28
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 29
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 30
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 31
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 32
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 33
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 34
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753 0.6902
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 34
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753 0.6902
Column 35
0.1376
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 34
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753 0.6902
Columns 35 through 36
0.1376 0.9286
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 34
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753 0.6902
Columns 35 through 37
0.1376 0.9286 0.1033
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 34
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753 0.6902
Columns 35 through 38
0.1376 0.9286 0.1033 0.6519
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 34
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753 0.6902
Columns 35 through 39
0.1376 0.9286 0.1033 0.6519 0.7066
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779 0.8708 0.1601 0.1622
Columns 18 through 34
0.2909 0.2279 0.5726 0.3020 0.8618 0.3148 0.9162 0.9415 0.3687 0.2990 0.2780 0.8957 0.2046 0.3919 0.8951 0.9753 0.6902
Columns 35 through 40
0.1376 0.9286 0.1033 0.6519 0.7066 0.8314
y =
Columns 1 through 17
0.0840 0.1281 0.5642 0.9389 0.5486 0.3509 0.1139 0.2578 0.5350 0.8178 0.8411 0.5515 0.2635 0.3779...
|
3 | Pass |
x = ['A' 'long' 'time' 'ago' 'in' 'a' 'galaxy' 'far' 'far' 'away'];
actual = everyOther(x);
expected = x(1:2:length(x));
assert(isequal(actual, expected))
y =
'A'
y =
'Ao'
y =
'Aog'
y =
'Aogi'
y =
'Aogie'
y =
'Aogieg'
y =
'Aogiegi'
y =
'Aogiegia'
y =
'Aogiegiaa'
y =
'Aogiegiaaa'
y =
'Aogiegiaaay'
y =
'Aogiegiaaaya'
y =
'Aogiegiaaayaf'
y =
'Aogiegiaaayafr'
y =
'Aogiegiaaayafrw'
y =
'Aogiegiaaayafrwy'
|
649 Solvers
Read a column of numbers and interpolate missing data
800 Solvers
Remove the small words from a list of words.
474 Solvers
MATCH THE STRINGS (2 CHAR) very easy
194 Solvers
325 Solvers