Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
cVec = 5:-.2:-5;
c = VectorFunc();
assert(isequal(c,cVec))
ans =
Columns 1 through 10
5.0000 4.8000 4.6000 4.4000 4.2000 4.0000 3.8000 3.6000 3.4000 3.2000
Columns 11 through 20
3.0000 2.8000 2.6000 2.4000 2.2000 2.0000 1.8000 1.6000 1.4000 1.2000
Columns 21 through 30
1.0000 0.8000 0.6000 0.4000 0.2000 0 -0.2000 -0.4000 -0.6000 -0.8000
Columns 31 through 40
-1.0000 -1.2000 -1.4000 -1.6000 -1.8000 -2.0000 -2.2000 -2.4000 -2.6000 -2.8000
Columns 41 through 50
-3.0000 -3.2000 -3.4000 -3.6000 -3.8000 -4.0000 -4.2000 -4.4000 -4.6000 -4.8000
Column 51
-5.0000
|
Read a column of numbers and interpolate missing data
1235 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
314 Solvers
Add a row of zeros on top of a matrix
194 Solvers
616 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!