This problem needs a test suite
Yes, Ujjwal: you must define well the test cases.
I added two simple tests.
1262 Solvers
2263 Solvers
17154 Solvers
272 Solvers
116 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!