Cody

# Problem 1728. Transpose

Solution 1264446

Submitted on 7 Sep 2017 by Richard Blair
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.4509 0.7648 0.2034 0.2601 0.0912 0.0840 0.9242 0.5682 0.7582 0.7959 0.1816 0.2081 0.9753 0.0284 0.1612 0.2617 0.4419 0.6826 0.2491 0.2287 0.9740 0.1645 0.7984 0.0812 0.2145 0.2793 0.9261 0.3178 0.8211 0.4542 0.0297 0.5628

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