File Exchange

image thumbnail

CPU Info

version 1.1.0.1 (3.2 KB) by

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

13 Downloads

Updated

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

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.

Comments and Ratings (6)

David

David (view profile)

Matthew Kelly

Matthew Kelly (view profile)

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

nikolat

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.: http://en.wikipedia.org/wiki/Processor_Serial_Number#Controversy_about_privacy_issues

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

Daniel Dolan

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

Stephen

Updates

1.1.0.1

Updated license

1.1

Fix for multi-socket Windows boxes.

MATLAB Release
MATLAB 7.10 (R2010a)
Acknowledgements

Inspired: detectOS

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

» Watch video