Cody

# Problem 1728. Transpose

Solution 1460744

Submitted on 11 Mar 2018 by GEORGIOS BEKAS
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

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));

myAns = 0.2984 0.8840 0.1124 0.2296 0.5386 0.0065 0.0822 0.7250 0.3638 0.7974 0.8617 0.9121 0.5155 0.9621 0.5721 0.5078 0.8550 0.0162 0.2896 0.8463 0.9259 0.2468 0.6409 0.1148 0.1795 0.3578 0.3616 0.4639 0.5608 0.3150 0.6931 0.4876 0.9642 0.2910 0.4443 0.2689 0.8828 0.2163 0.1886

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');

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!