@Azhar: you need to change your function name. 'string' already exists as a function in MATLAB.
The function name has been updated. The problem should now be solvable.
Change your function name please.
10074 Solvers
259 Solvers
290 Solvers
2938 Solvers
481 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!