Cody

# Problem 1728. Transpose

Solution 1866357

Submitted on 5 Jul 2019 by Andrew Gorrie
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.8423 0.1728 0.1539 0.6461 0.7401 0.3019 0.9467 0.7990 0.0141 0.2182 0.8142 0.1548 0.0182 0.1246 0.2957 0.6817 0.0890 0.4601 0.1749 0.2243 0.0204 0.4210 0.8048 0.5075 0.9050 0.1739 0.8642 0.8259 0.0048 0.3944 0.6144 0.6154 0.7416 0.9801 0.2386 0.9746 0.4651 0.3043 0.5676 0.6793 0.5812 0.4304 0.0971 0.9268 0.4958 0.6519 0.1540 0.3846 0.3246 0.0887 0.0642 0.4621 0.8593 0.8563 0.0382 0.2352 0.0236 0.7403 0.4505 0.3085 0.1108 0.0942 0.2410 0.2680 0.9868 0.9887 0.3528 0.3873 0.4976 0.8693 0.8185 0.7375 0.7161 0.6403 0.5356 0.9524 0.0841 0.4917 0.0387 0.4498 0.8969 0.7448 0.7640 0.0771 0.4044 0.2604

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