computer
miscellaneous · scripts/miscellaneous/computer.m
COMPUTER Information about the computer on which Nexus is running.
C = COMPUTER returns the platform name: 'GLNXA64' (Linux), 'PCWIN64'
(Windows), 'MACI64' (macOS, Intel) or 'MACA64' (macOS, Apple silicon).
[C, MAXSIZE, ENDIAN] = COMPUTER also returns the largest number of
elements an array can hold and the byte order of the machine
('L' little-endian, 'B' big-endian).
STR = COMPUTER ('arch') returns the architecture string in lower case,
for example 'glnxa64' or 'win64'.
See also ispc, isunix, ismac.