Cody

# Problem 1728. Transpose

Solution 318805

Submitted on 13 Sep 2013 by Ashutosh datar
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.9034 0.6270 0.5488 0.4068 0.6918 0.6685 0.4630 0.6723 0.9697 0.5296 0.6213 0.7618 0.9930 0.8829 0.5554 0.1156 0.7101 0.3627 0.2108 0.6983 0.6113 0.6372 0.8035 0.6086 0.2923 0.2173 0.4869 0.7462 0.8923 0.0762 0.1237 0.9344 0.8177 0.3691 0.0612 0.3241 0.3704 0.9527 0.5160 0.9334 0.3100 0.7364 0.8471 0.5784 0.9354 0.6975 0.1767 0.9968 0.8383 0.0272 0.3086 0.3092 0.4197 0.8536 0.8111 0.6907 0.3826 0.7126

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