I want to open a PDF from matlab with the winopen or open function. I want to use just the Adobe PDF reader for my program but in general want the default application for windows to be Adobe professional. Is there a way to make sure that the Adobe reader is opened and that it opens the file I want opened without having to use Adobe professional and changing my default settings for preferences?
I want to be able to do something like this:
x = 'row6col8.pdf'
!start acrord32.exe x
But this does not work any ways around this?
The
winopendocumentation indicates that the program used to open the file is determined by the filename’s extension.Couldn’t you use system commands via
!your-pdf-viewer file.pdffrom matlab, and specify which pdf viewer to use and which pdf file to view? Something like:I am not on a windows machine, so I am not sure how of the exact commands to open files from the windows terminal…
Edit:
I see. You could then do: