Problem 42591. Produce the following matrix
Produce the following matrix
x = [2 3 4]
y_correct = [1 1/2 1/3; 2 1 1/4; 3 4 1];
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 1 Aug 2020
It needs more test cases. It is not clear what the output should be for all possible x.
Solution Comments
Show commentsProblem Recent Solvers63
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2712 Solvers
-
Number of 1s in a binary string
8961 Solvers
-
389 Solvers
-
Sum the 'edge' values of a matrix
339 Solvers
-
983 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!