View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
CPU Info

4.2 | 4 ratings Rate this file 13 Downloads (last 30 days) File Size: 3.2 KB File ID: #33155 Version:
image thumbnail

CPU Info


Ben Tordoff (view profile)


06 Oct 2011 (Updated )

Read various bits of information about the CPU and operating system.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information

This function reads various bits of information about the CPU and operating
system, including:

 * CPU name

 * CPU clock speed

 * CPU Cache size (L2)

 * Number of physical CPU cores

 * Operating system name & version

These are provided by /proc/cpu (Unix), sysctl (Mac) or WMIC (Windows).

Requires MATLAB R2010a or above.


This file inspired Detect Os.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
17 Feb 2016 Matthew Kelly

Nice Job!
This did exactly what I was looking for.

23 Apr 2014 nikolat

04 Jan 2012 Ben Tordoff

Ben Tordoff (view profile)

Hi Daniel, I don't know much about CPU serial numbers, but from what I've read they don't exist in modern CPUs. See e.g.:

When I ask for the serial on my CPUs (on linux) I just get "none specified".

It might be possible to get the motherboard serial number, although I haven't managed to get it on Linux without sudo'ing (not a problem on Windows as far as I can tell).

What is it you want to achieve?

Cheers. Ben

Comment only
24 Dec 2011 Daniel Dolan

This function does exactly what it says it should. Is there a way to pull a serial number from the CPU?

11 Nov 2011 Stephen

09 Nov 2011 1.1

Fix for multi-socket Windows boxes.

01 Sep 2016

Updated license

Contact us