Cody

# Problem 1728. Transpose

Solution 1811216

Submitted on 9 May 2019 by Michael Battye
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.7507 0.6046 0.2658 0.3275 0.9668 0.8134 0.3524 0.4000 0.2686 0.5267 0.3467 0.6039 0.8936 0.3506 0.0183 0.8382 0.5082 0.6882 0.4154 0.0794 0.3395 0.9296 0.6094 0.7260 0.0917 0.5463 0.2240 0.4899 0.5931 0.0918 0.5759 0.8797 0.7742 0.9023 0.4140 0.2530 0.9868 0.9952 0.6726 0.3250 0.6210 0.5577 0.0079 0.3472 0.9487 0.5739 0.2316 0.6006 0.6634 0.2880 0.4032 0.5883 0.9429 0.4140 0.8057 0.3861 0.4409 0.6908 0.6761 0.0906 0.0056 0.1102 0.5170 0.5392 0.3040 0.9577 0.7290 0.0648 0.9636 0.7765 0.7836 0.6121 0.0967 0.3520 0.5954 0.7247 0.3494 0.8098 0.5009 0.4612 0.3077 0.5066 0.8457 0.4514

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