Cody

# Problem 1728. Transpose

Solution 1712912

Submitted on 22 Jan 2019 by Jaap Rijnders
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.6321 0.3261 0.5552 0.1255 0.6094 0.9605 0.8128 0.6185 0.2742 0.5836 0.7070 0.5505 0.5020 0.7895 0.3832 0.0915 0.5313 0.2312 0.6656 0.4553 0.2292 0.5028 0.3241 0.7133 0.5217 0.2717 0.9865 0.8939 0.6536 0.5308 0.1282 0.9519 0.5385 0.5260 0.0799 0.2388 0.3792 0.0531 0.2989 0.2041 0.0337 0.1778 0.3287 0.7924 0.4286 0.6680 0.3439 0.1670 0.1903 0.6178 0.8344 0.0417 0.7953 0.1753 0.7169 0.2105 0.7965 0.7736 0.4537 0.6412 0.1060 0.6998 0.8601 0.9165 0.9460 0.8787 0.4782 0.2190 0.4982 0.3964 0.4349 0.6721 0.3511 0.9563 0.5591 0.0018 0.0592 0.0947 0.2008 0.0985 0.5600 0.2598 0.5984 0.5451 0.0873 0.2522 0.5295 0.6640 0.3463 0.7587 0.7728 0.0619 0.0269 0.9353 0.6226 0.4799 0.1427

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