Cody

# Problem 1728. Transpose

Solution 935455

Submitted on 12 Aug 2016 by Rahul Shinde
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.3313 0.1702 0.3186 0.7669 0.5673 0.7392 0.4796 0.7832 0.2461 0.7753 0.1918 0.4194 0.3065 0.9530 0.5048 0.4605 0.5913 0.6351 0.7819 0.8841 0.8913 0.0114 0.1990 0.7592 0.9283 0.9538 0.2392 0.9041 0.3720 0.6604 0.6389 0.8290 0.4880 0.0542 0.7366 0.4474 0.5351 0.4521 0.8016 0.0234 0.6563 0.4850 0.1580 0.7593 0.1296 0.8110 0.8201 0.9581 0.8088 0.2990 0.9720 0.4676 0.3773 0.3546 0.1826 0.3259 0.0748 0.1931 0.7440 0.7755 0.1535 0.2320 0.2681 0.5380 0.6678 0.5916 0.1714 0.4925 0.9995 0.5068 0.3791 0.3783 0.7434 0.4072 0.1775 0.5783 0.7038 0.9481 0.5773 0.9872 0.2340 0.8222 0.8994 0.8181 0.2024 0.9055 0.5460 0.3058 0.4791 0.4477 0.1175 0.3124 0.7910 0.8630

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