Cody

# Problem 1728. Transpose

Solution 1800582

Submitted on 30 Apr 2019 by Ed P.
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.0927 0.3024 0.0448 0.6537 0.6392 0.1671 0.3263 0.9664 0.9716 0.2393 0.1780 0.6628 0.9895 0.4555 0.5626 0.4520 0.7298 0.0456 0.2761 0.5795 0.3149 0.0131 0.5685 0.2029 0.9868 0.1396 0.1426 0.6218 0.3769 0.6365 0.3662 0.0559 0.9176 0.7973 0.5306 0.6754 0.3630 0.6873 0.2061 0.0085 0.5743 0.3758 0.6895 0.8938 0.3811 0.4600 0.8363 0.3302 0.5676 0.8215 0.4615 0.7083 0.8614 0.0728 0.0541 0.1859 0.7258 0.0584 0.4288 0.7885 0.8635 0.3103 0.1016 0.9435 0.3215 0.5398 0.6549 0.8057 0.3662 0.9784 0.3063 0.1046 0.9504 0.3835 0.7857 0.6574 0.1441 0.7493 0.2131 0.8159 0.9873 0.5726 0.0786 0.3845 0.5539 0.0510 0.6742 0.6490 0.6999 0.0173

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