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

initial version

Author

Allan CORNET

Last updated