This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = ceil(100*rand());
v = rand(1,n);
v_correct = v';
assert(isequal(question(v),v_correct));
|
2 | Pass |
fid = fopen('question.m');
line1=fgetl(fid);
line2=fgetl(fid);
line3=fgetl(fid);
fclose(fid);
assert(strcmp('function myAns = question(v)',line1),'Only change the lines you are asked to');
assert(strcmp(' %%%%%',line2),'Only change the lines you are asked to');
assert(strcmp(' %%%%% Place your code below. DO NOT change anything outside the region %%%%',line3),'Only change the lines you are asked to');
|
2197 Solvers
given 3 sides, find area of this triangle
680 Solvers
Matrix indexing with two vectors of indices
485 Solvers
620 Solvers
Flip the vector from right to left
2674 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!