Matlab: Wie man eine Variable auf 1 setzt, wenn auf Windows ausgeführt wird / auf 0, wenn auf Linux oder Unix ausgeführt wird

os_detection.m
if isunix || ismac
  osFlag = 0;  % Linux/Unix/macOS
elseif ispc
  osFlag = 1;  % Windows
end

Check out similar posts by category: Matlab/Simulink