Cody

# Problem 1728. Transpose

Solution 400806

Submitted on 11 Feb 2014 by andrea84
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.8266 0.3698 0.2756 0.3516 0.8838 0.7849 0.0982 0.2150 0.0549 0.1031 0.9344 0.2628 0.0546 0.0915 0.2157 0.3760 0.3806 0.9903 0.6487 0.5759 0.6560 0.9937 0.3069 0.7656 0.8480 0.5934 0.5765 0.7749 0.8308 0.5401 0.6941 0.2646 0.3045 0.5017

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

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!