Prasad, I enjoyed thinking through the pattern to solve this problem and the related problem. One suggestion for both is to add more test cases so that solvers cannot simply write their codes to return the answer to the single test case.
Needs more test cases.
669 Solvers
228 Solvers
360 Solvers
260 Solvers
Write a function man that takes a row vector v and returns a matrix H as follows..
439 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!