Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

isunix

Checks if version is for GNU Linux or Unix platform.

Syntax

  • s = isunix()

Output argument

  • s - a logical: true if it is a GNU Linux or Unix platform.

Description

isunix checks if it is a GNU Linux or Unix platform.

MacOs platform is also detected as a GNU Linux or Unix platform.

Example

if isunix
  disp('Your platform is Unix or Linux')
else
  disp('Your platform is Unix or Linux')
end

See also

ispc, ismac.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET