Cody

# Problem 1728. Transpose

Solution 687545

Submitted on 16 Jun 2015 by Vidushi Jain
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.5817 0.8902 0.4878 0.8089 0.2017 0.5448 0.0335 0.7631 0.3111 0.3289 0.5680 0.2673 0.8403 0.9836 0.8046 0.7786 0.6520 0.1291 0.1008 0.9993 0.3418 0.3352 0.3632 0.0738 0.9136 0.9133 0.1563 0.1196 0.1514 0.0161 0.0408 0.2944 0.9392 0.4370 0.9385 0.0221 0.6502 0.8378 0.3690 0.8797

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