Cody

# Problem 1728. Transpose

Solution 3024340

Submitted on 1 Oct 2020 by Ahsanul Islam
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.8146 0.5750 0.8016 0.4692 0.5892 0.3339 0.1447 0.1933 0.7045 0.0713 0.7554 0.6950 0.3584 0.3916 0.6410 0.9142 0.0904 0.2712 0.2959 0.5325 0.2401 0.3333 0.3562 0.0626 0.4391 0.5481 0.5250 0.2170 0.8081 0.0674 0.7004 0.5938 0.1094 0.3733 0.9591 0.1121 0.9224 0.6698 0.2020 0.5425 0.8920 0.3872 0.0636 0.8541 0.4728 0.1937 0.9830 0.3458 0.5395 0.2652 0.7903 0.3577 0.9946 0.3520 0.8876 0.0351 0.1254 0.1571 0.6606 0.4111

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!