Hi Amitava:
Could you provide an example in your problem statement? Also, as Evan says below, you should have more than one test case or it becomes a trivial matter to hard-code a particular answer.
Probably should add a couple more test cases so that silly people like me don't submit answers like this. ;)
Back to basics 21 - Matrix replicating
1058 Solvers
332 Solvers
Arrange vector in ascending order
626 Solvers
Find out value of sine given by degree.
235 Solvers
265 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!