<< getmodules Configuration getscilabmode >>

Scilab Help >> Scilab > Configuration > getos

getos

return Operating System name and version

Syntax

[OS, Version] = getos()

Description

[OS,Version]=getos() returns Operating System name and version.

Examples

OS = getos()
[OS, version] = getos()
--> OS = getos()
 OS  =
  "Windows"

--> [OS, version] = getos()
 OS  =
  "Windows"

 version  =
  "8 x64"
if (getos() == "Windows") then
   disp("Scilab on Windows");
end
if (getos() == "Linux") then
   disp("Scilab on Linux");
end
if (getos() == "SunOS") then
   disp("Scilab on Solaris");
end
if (getos() == "Darwin") then
   disp("Scilab on MacOs");
end

Report an issue
<< getmodules Configuration getscilabmode >>