Cody

# Problem 1728. Transpose

Solution 1778034

Submitted on 8 Apr 2019 by Yingao Zhang
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.4116 0.4890 0.5131 0.2944 0.9668 0.7291 0.8649 0.4583 0.3780 0.5546 0.5603 0.3522 0.8073 0.8416 0.4138 0.9765 0.8267 0.7973 0.4834 0.8650 0.3181 0.8684 0.5899 0.6249 0.5180 0.3059 0.3141 0.3898 0.2209 0.1496 0.1388 0.4059 0.7599 0.7920 0.7950 0.4619 0.9401 0.1870 0.2322 0.4403 0.1633 0.5807 0.1812 0.7560 0.9906 0.7934 0.8737 0.4333

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