When I execute the following command
print('-dpdf ', 'test.pdf')
I get the error
??? Error using ==> print at 315 Illegal device option, '-dpdf ', specified.
However, no error occurs if I use the following syntax:
print -dpdf test.pdf
MATLAB
print('-dpdf ', 'test.pdf')
??? Error using ==> print at 315 Illegal device option, '-dpdf ', specified.
print -dpdf test.pdf
Best Answer