Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

ismac

Determine if version is for Mac OS X platform

Syntax

Description

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).

Examples

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

More About

collapse all

Tips

  • The isunix function also determines if version is for Mac OS X platforms.

See Also

| | | |

Introduced in R2007a


Was this topic helpful?