view m-toolbox/classes/+utils/+const/@physics/physics.m @ 52:daf4eab1a51e database-connection-manager tip

Fix. Default password should be [] not an empty string
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 07 Dec 2011 17:29:47 +0100
parents f0afece42f48
children
line wrap: on
line source

% 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