Fundamental physical constants

Functions that returns a struct() containing most fundamental physical constants.

You are now following this Submission

The struct has two levels. The first level is the name of the constant. The second level has fields: "value", "uncert" and "unit".
Example:
phc = fundamentalPhysicalConstantsFromNIST();
phc.speed_of_light_in_vacuum.value
returns
299792458
and
phc.speed_of_light_in_vacuum.unit
returns
ms^-1
Data was obtained from http://physics.nist.gov./cuu/index.html and (almost) automatically transfered to matlab syntax with the help of some c and awk programming.

The constants who's uncertainties are given av (exact), the value of 0 is returned.

Cite As

Jarek Luberek (2026). Fundamental physical constants (https://uk.mathworks.com/matlabcentral/fileexchange/24236-fundamental-physical-constants), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Physics in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0