How to look at information about your computer on which MatLab is running in MatLab? - computer -- MatLab
How to look at information about your computer on which MatLab is running in MatLab? - computer -- MatLab
How to look at information about your computer on which MatLab is running in MatLab?
[Ans]
computer
[description]
<s>=computer('arch')
It will return architecture of your computer on which MatLab is running.
[<s>,<maxSize>,<endian>]=computer;
It will return information of your computer on which MatLab is running.
s will be computer type.
maxSize will be max number of element.
endian will be endian format on your computer.
'L' for little endian, 'B' for big endian.
learning about endianness, see:
wiki page
more details on:
[code]
%computer
clear
clc
help computer;%help docs about computer.
fprintf("Hello MatLab.");
s=computer
fprintf("1\n");
s=computer('arch') %s='gnlxa64'
fprintf("2\n");
[s,maxSize,endian]=computer %s='GLNXA64' maxSize=28147e+14 endian='L' (little endian)
Comments
Post a Comment