How can I determine what processor I have using MATLAB?

Is there any way I can determine what processor is in my machine using only MATLAB with no other software or tools?

 Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 23 Mär. 2026 um 0:00
Bearbeitet: MathWorks Support Team am 23 Mär. 2026 um 17:02
You can use the attached `getProcessorInfo.m` function determine processor information about your computer. This function will return a structure that looks like the following:
cpuModel: "AMD Ryzen 5 PRO 5650U with Radeon Graphics"
CPUID: "AMD64 Family 25 Model 80 Stepping 0"
ucode: "0A500014"
biosVersion: "R1MET62W (1.32 )"
And includes the specific processor and other important information about your machine. This function uses native system commands and does not require any other software to run.

1 Kommentar

On Mac, this code will fail on the
[~, systemInfo] = system('lscpu');
call.
Note: Mac CPU can be PowerPC (for sufficiently old versions of MATLAB), or Intel chip (mostly Core series but sometimes Xeon), or Apple M* series processors.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by