Cody

# Problem 1728. Transpose

Solution 1668942

Submitted on 8 Nov 2018 by hossein Yadi
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.3852 0.5448 0.1514 0.4788 0.3920 0.8601 0.7144 0.6919 0.8080 0.6627 0.3131 0.7430 0.5746 0.3940 0.2357 0.0316 0.2312 0.0893 0.5482 0.1845 0.8331 0.6901 0.5232

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!