<< getmodules Configuration getscilabmode >>

Scilab Help >> Scilab > Configuration > getos

getos

オペレーティングシステムの名前とバージョンを返す

呼出し手順

OS=getos()
[OS,Version]=getos()

説明

[OS,Version]=getos()は, オペレーティングシステムの名前とバージョンを返します.

OS=getos()
[OS,version] = getos()
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 >>