Cody

# Problem 1728. Transpose

Solution 290203

Submitted on 26 Jul 2013 by MKN
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.0319 0.3569 0.6627 0.2815 0.2304 0.7111 0.6246 0.5906 0.6604 0.0476 0.3488 0.4513 0.2409 0.7150 0.8562 0.2815 0.7311 0.1378 0.8367 0.1386 0.5882 0.3662 0.8068 0.5038 0.4896 0.8770 0.3531 0.4494 0.9635 0.0423 0.9730 0.1892 0.6671 0.5864 0.6751 0.3610 0.6203 0.8112 0.0193 0.0839 0.9748 0.6513 0.2312 0.4035 0.1220 0.2684 0.2578 0.3317 0.1522 0.3480 0.1217 0.8842 0.0943 0.9300 0.3990 0.0474 0.3424 0.7360 0.7947 0.5449 0.6862 0.8936 0.0548 0.3037 0.0462 0.1955 0.7202 0.7218 0.8778 0.5824 0.0707 0.9227 0.8004 0.2859 0.5437 0.9848 0.7157 0.8390 0.4333 0.4706 0.5607 0.2691 0.7490 0.5039 0.6468 0.3077 0.1387 0.4756 0.3625 0.7881 0.7803 0.6685 0.1335 0.0216 0.5598 0.3008

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