Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1:10];
y_correct = 0;
assert(isequal(column_vector(x),y_correct))
a =
1
b =
10
y =
0
|
2 | Pass |
%%
x = [1:10]';
y_correct = 1;
assert(isequal(column_vector(x),y_correct))
a =
10
b =
1
y =
1
|
3 | Pass |
%%
x = 1;
y_correct = 1;
assert(isequal(column_vector(x),y_correct))
a =
1
b =
1
y =
1
|
The Hitchhiker's Guide to MATLAB
2874 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
Return the first and last character of a string
3452 Solvers
531 Solvers
229 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!