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.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

isunix

Determine if version is for Linux or Mac platforms

Syntax

Description

example

tf = isunix returns logical 1 (true) if the version of MATLAB® is for Linux® or Apple Mac OS X platforms. 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

See Also

| | | |

Introduced before R2006a

Was this topic helpful?