Mercurial > hg > ltpda
diff m-toolbox/classes/+utils/+const/@physics/physics.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/+utils/+const/@physics/physics.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,31 @@ +% PHYSICS class that defines common physical constants. +% +% The usage of these utils it is now deprecated and will be removed in future releases. +% Please use the syntax +% >> plist(plist('Built-In', 'physical_constants')).find('<constant_name>'); instead! +% +% M Hewitson 08-08-08 +% +% $Id: physics.m,v 1.5 2011/07/06 06:41:15 mauro Exp $ +% + +classdef physics + properties (Constant = true) + c = 299792458; % m s^-1 + epsilon0 = 8.854187817e-12; % F m^-1 + mu0 = 4*pi*1.e-7; % N A^-2 + h = 6.62606896e-34; % J s + G = 6.67428e-11; % m^3 kg^-1 s^-2 + e = 1.602176487e-19; % C + kB = 1.3806504e-23; % J K^-1 + + dep = deprecation_message(); + + end +end + +function out = deprecation_message() + out = ['The usage of these utils it is now deprecated and will be removed in future releases. ' ... + 'Please use the syntax '' plist(plist(''Built-In'', ''physical_constants'')).find('' constant_name ''); '' instead!']; + disp(out); +end