I want to use pdfcrop in matlab via the system command:
system('pdfcrop image.pdf image.pdf')
I have installed the pdfcrop on my mac and it does work from the shell, however for some unknown reason matlab is not able to find it and gives me the error
/bin/bash: pdfcrop: command not found
so I need to do the pdfcrop manually from the shell and I cannot automize it from my matlab script. Any suggestion?