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?

 Accepted Answer

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 Comment

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.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!