Cody

# Problem 1728. Transpose

Solution 2021453

Submitted on 14 Nov 2019 by Alexander Schröder
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.0078 0.7221 0.4116 0.1037 0.6806 0.4863 0.9763 0.6395 0.3895 0.7240 0.1141 0.6170 0.1875 0.6126 0.4750 0.3353 0.6244 0.7925 0.1314 0.7709 0.1707 0.4556 0.5011 0.2413 0.5184 0.0766 0.0124 0.8236 0.1584 0.8404 0.5947 0.4697 0.6273 0.4220 0.0668 0.0793 0.8459 0.5519 0.4273 0.3501 0.6851 0.3971 0.2309 0.7468 0.4260 0.9995 0.4427 0.2775 0.7411 0.4412 0.0264 0.8868

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