image thumbnail


version (1.38 KB) by Varun Gandhi
MACOPEN can be used to open a file or directory outside MATLAB on Mac OSX


Updated 10 Aug 2020

View License

MACOPEN FILENAME opens the file or directory FILENAME using the OPEN terminal command. Similar to the WINOPEN windows function in MATLAB.

% Examples:
% If you have Microsoft Word installed, then
% macopen('/myDoc.docx')
% opens that file in Microsoft Word if the file exists, and errors if it doesn't.
% macopen('/Applications')
% opens a new Finder window, showing the contents of your /Applications folder.

Cite As

Varun Gandhi (2022). MACOPEN (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!