Determine if version is for Mac OS X platform
tf = ismac
example
tf = ismac returns logical 1 (true) if the version of MATLAB® software is for the Apple Mac OS X platform. Otherwise, it returns logical 0 (false).
1
true
0
false
collapse all
if ismac % Code to run on Mac plaform elseif isunix % Code to run on Linux plaform elseif ispc % Code to run on Windows platform else disp('Platform not supported') end
The isunix function also determines if version is for Mac OS X platforms.
isunix
computer | is* | ispc | isstudent | isunix
computer
is*
ispc
isstudent