I see that you have found a solution, let me give you a little more elegant, which will make life easier in the future.
system(sprintf('./util/filtermapq.sh %s %s %s', var1, var2, var3))
It can also be conveyed in numbers, for example, or in other interesting materials. In addition, you can do this to help debug such issues.
command=sprintf('./util/filtermapq.sh %s %s %s',var1, var2, var3); fprintf('%s\n',command); system(command);
This will display the exact command you are trying to run. If your system command does not work, copy it to the command prompt window and see if it works there. If he doesnโt figure out how to massage the text to make it work, and correct your code accordingly.
source share