File ID: 81731
File Size: 10.0 KB
initializePhysicalConstants.m 1.0 Description
Description: initializePhysicalConstants.m loads important physical constants into
the structure CONSTS. The CONSTS structure will contain both values
(accessible by CONSTS.var_name), and descriptive information
(CONSTS.desc.var_name.[Name, Units, Value]).
% What are the units of the unversal gas constant?
Name: 'Gas Constant'
Units: 'J K^-1 mol^-1'
% Atoms in 10 grams of oxygen:
V = 1; %L
P = 1; % atm
T = CONSTS.T_o + 20; % K
nMols = P*V / (CONSTS.R*T)
% How may atoms?
nAtoms = nMols * CONSTS.N_a
This program can be vastly improved; I'm happy to do so if people
actually use it. (for example: more constants, database functionality,
embedded dimensional information...) Just send me an email (see my
Created: Rob Chambers
Free to use or modify, just keep my reference info intact.
Related: vastly, Program, improved, i039m, People, happy, 24708e2b020this, constsn, constsrt, nmols, 41030e004, atoms, natoms, Free, httpwwwstanfordedurobc, modify, Reference, intact
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB
|More Similar Code|
M-pack is a Package containing menu-implementing applets, which can build menus with different effects and features. The applets contain various parameters, which can be customized like text, image dimensions, font, size and different menu levels. Some menus in the package with different menu implementations are: CompactMenu, mimbounce, mimdesc, mimring, treemenu, textbuttongrid, iebb, jam, mselight, msetint, msetwirl, mseconvex.
M-pack (bundle of several menu applets) is multi-platform compatible. M-pack includes a series of web-based Java menu programs (mimbounce, mimdesc, mimring, treemenu, textbuttongrid, iebb, jam, mselight, msetint, msetwirl, mseconvex) that can be...
m-phorum is a simple discussion board that is based on PHP and MYSQL data base.This board contains forums to post topics for online discussions and also avails spaces for replies given by their users for the topics posted on the board.This board...
This m-file finds the periodic ACF of all the m-sequences of length 31.In this program m-sequences of length 31 are generated and its periodic Autocorrelation function is plotted.
These files just to simulate or demo M-QAM modem in case BER, channel model, signals in t and f domain.
Overal proses from bit insertion at modulator to bit estimated in demodulator. We can see the change of signal in each block diagram.
The attached Matlab file estimate numerically the probability of error for M-array orthogonal signals and plot the graph BER for M-signals [2 to 64].
Numerical estimation is performed on the probability of error equation derived in...
It is M File for computing the rational coefficiants for HeartVI1 Simulink.
This very simple m-function computes cross spectrum, coherence and phase at the same time. The input parameters are equivalent to pwelch.n or csd.m in MATLAB and use csd.m in the singal toolbox.
It's very simple but useful for engineers.
You can rum these files by my_speech.m file, taking an value like my_speech(64, 'qam') in the command window of MATLAB.
I wrote this for a friend who likes to use Excel to track the issues reported by the M-Lint code analyzer on her code. She explained that she would paste the M-Lint report into Microsfot Excel and check off each item as she fixed it.
|User Review for initializePhysicalConstants.m