The code runs perfectly well in Matlab, however, when I compile an exe file and run that, it gives me the following error:
"subscript indices must either be real positive integers or logicals"
The code is as follows:
The line marked HERE is the one throwing out the error.
Help would be really appreciated. :)