Cody

# Problem 1728. Transpose

Solution 2000695

Submitted on 3 Nov 2019 by Eric Mueller
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.9831 0.0657 0.1151 0.2920 0.4973 0.3712 0.4754 0.0761 0.7375 0.3158 0.5913 0.3765 0.5468 0.1067 0.2296 0.7802 0.4301 0.6088 0.1876 0.8373 0.4396 0.3018 0.6082 0.9632 0.7602 0.6795 0.1967 0.4591 0.0555 0.5854 0.6469 0.8650 0.6058 0.3633 0.3970

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