Get the name of the CPU

Methods to get the name of the CPU on Windows, Linux and Mac
Updated 29 Oct 2014

View License

getCpuName returns the name of the CPU:

>> getCpuName

ans =

Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz

By default, it uses C-MEX files. The MEX files use the CPUID opcode. Source files is provided in the zip file. Compiled MEX are also available at this address :

getCpuName can also call system commands: wmic on Windows, /proc/cpuinfo on Linux and machdep.cpu on Mac.

Last, getCpuName can query the Windows registry.

See also "CPU Info" by Ben Tordoff (

Cite As

Jerome Briot (2024). Get the name of the CPU (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Search Path in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes