This help section details all the Units contained within the Kornucopia Units Library and also the Units Preferences available. We begin with a few helpful comments.
The units-related information presented here represent installed default values that are supplied with Kornucopia. The user can modify, delete, or add to these values quite easily via the functions k_unitsDefine and k_unitsPreferenceDefine. To get a listing of Units available in a current MATLAB session, use the function k_unitsList.
The Kornucopia Units Library is very large, with over 230 different units defined, ranging from commonly used units such as N, mm, kg, and lbf to units that are less commonly used such as cottonCount and fortnight.
A Kornucopia Units Preference is like a units system but more flexible. The basic idea of a Units Preference is that you are telling the software what Units you want results to be transformed into when calculations are performed. You can also easily change the Units of any variable at any time via the k_units method of .convert or the function k_unitsConvert. The added flexibility of a Units Preference is that by default you are allowed to define a list of mixed units for a given Preference, meaning you can have a Preference that returns results where length (and displacement) are in mm, loads in lbf, and stress in GPa. Having noted this flexibility, many of the installed Kornucopia Units Preferences define a consistent set of units (except the Units Preferences of ft_lbf_s_V, in_lbf_slinch_s_V, in_lbf_snail_s_V, and the family of ShockVib* units, all of which are described later in this help page). There are four specific functions related to Units Preferences: k_unitsPreferenceList, k_unitsPreferenceActivate, k_unitsPreferenceActive, and k_unitsPreferenceDefine.
Kornucopia's Units Engine knows how to properly work with mixed Units in calculations. This means you can do things like A = 5*mm + 3*in or B = 7.3*N/ft^2. Kornucopia knows how to internally apply the proper multiplicative conversion factors and also check for Units compatibility. The Units Engine can also detect improper Units-based calculations like C = 5*mm + 3*N or D = 5*log(15*MPa), both of which are improper calculations that will cause Kornucopia to throw a well-documented error telling you what is wrong. For valid calculations, the Units of the output results depends on what Units Preference you have active at the time of the calculation. If you have not directly set a Units Preference, Kornucopia will default to the 'SI_partial' preference. You can change the Units Preference whenever you want and you can also change any variables Units at any time via the Units conversion functionality of the k_units method of .convert or the function k_unitsConvert.
All of the above points imply:
It is easy for you to work in the real-world where inputs are often given in a variety of mixed Units or where you may need to give results in multiple forms of Units such as mm, N, MPa, and as well as in, lbf, and psi.
When performing a variety of calculations that can get complicated, Kornucopia will help you find mistakes such as using ^2 instead of ^3 on a term. Kornucopia helps you because in such a situation, the Units will come out differently or may be incompatible, causing a beneficial error to be thrown.
Quick links to sub-sections in this help page.
Listed below is the default Kornucopia Units that come with the software, grouped by Units Group Name. Presented after this table is another table containing the detailed definitions of each of the Units.
Default Kornucopia Units, Listed by Unit Groupings
Group Name | Units in Group |
absTemperature |
degK, degR, K, R, °K, °R |
acceleration |
G, kG, mG |
angle |
arcmin, arcsec, deg, mrad, rad, urad, rev, ° |
angularFreq |
cps, RPM, rpm |
area |
acre |
capacitance |
F, GF, kF, MF, mF, nF, pF, uF, µF |
celsius |
degC, °C |
charge |
C, GC, kC, MC, mC, nC, pC, uC, µC |
conductance |
GS, kS, MS, mS, nS, S, uS, µS |
currency |
currency |
current |
A, mA |
energy |
BTU, cal, cal_IT, Cal, Cal_IT, J, kcal, kcal_IT, kJ, MJ, mJ, uJ, µJ |
fahrenheit |
degF, °F |
force |
cN, dN, dyn, dyne, gf, gmf, kgf, kip, kN, lbf, mN, N, nN, ozf, pN, uN, µN |
forcePerLength |
pli |
frequency |
Hz, kHz, MHz, GHz, THz |
fundamental |
A, cd, currency, K, kg, m, mol, rad, s |
illuminance |
lux, lx |
inductance |
GH, H, kH, MH, mH, nH, pH, uH, µH |
length |
cm, dm, ft, furlong, in, inch, km, m, micron, mil, mile, mm, nm, um, yd, µm |
linearMassDensity |
den, dtex, tex |
luminousIntensity |
cd, lumen |
magnetism |
fWb, Gauss, gauss, GT, GWb, kT, kWb, MT, mT, MWb, mWb, nT, nWb, Oe, Oersted, oersted, pWb, T, Tesla, tesla, uT, uWb, Wb, Weber, weber, µT, µWb |
mass |
blob, gm, grn, kg, lbm, Mg, mg, microgram, msnail, oz, slinch, slug, snail, ton, tonne, ug, usnail, µg, µsnail |
microStrain |
microStrain, uStrain, µStrain |
miscellaneous |
%, 1, GSa, kSa, micro, MSa, Sa, TSa, µ |
percent |
%, percent |
potential |
GV, kV, microV, MV, mV, nV, pV, uV, V, µV |
power |
GW, hp, kW, MW, mW, nW, uW, W, µW |
pressure |
atm, bar, GPa, inHg, kPa, ksi, mbar, mmHg, MPa, Pa, psf, psi, torr |
resistance |
Gohm, kohm, Mohm, mohm, nohm, ohm, uohm, µohm |
strain |
mStrain, milliStrain, microStrain, uStrain, µStrain |
substance |
mol |
temperature |
degC, degF, degK, degR, K, R, °C, °F, °K, °R |
textile |
cottonCount, den, dtex, gpd, mgpd, tex |
time |
day, fortnight, hr, microsec, min, minute, ms, msec, ns, nsec, sec, us, usec, µs, µsec |
userDefined |
|
velocity |
fps, ips, knot, kph, mph |
viscosity |
cP, Poise, poise |
volume |
cc, floz, galUK, galUS, L, mL |
A few things to note:
To see this list live in MATLAB, use the function k_unitsList. The live list will also reflect if you have added to the Kornucopia Units Library, or modified/deleted any of the units in the library via k_unitsDefine function.
For some units, there are multiple representations that are equivalent. These multiple options are provided because users commonly use these different "names" in practice. Some examples are:
For unit of second, Kornucopia's default options are 's' and 'sec'
For microsecond there is 'microsec', 'µs', 'µsec', 'us', and 'usec'
For Celsius there is 'degC' and '°C'
For a few units, the option of using special characters like ° and µ are available. These are primarily there to allow more robust importing of files in which such characters might be used. It is generally not recommended for users to heavily use such special characters in MATLAB as they are difficult to type and can cause problems if you are using m-files in both Windows and Linux.
Suggested alternatives to these special characters: Use deg for ° and u for µ .
For energy units in terms of calories, Kornucopia defines two types of calories, one related to food (also known as Thermochemical calorie) and the other related to steam tables (also known as International Table calorie). It is noted that if you Google the conversion of a cal, kcal, or Cal, you generally find the result returned is a conversion based on the food-based definition of calorie.
See the following references to learn more about the many definitions of the unit of calorie.
Please note the following:
Prior to Kornucopia version 3.0, Kornucopia had two units for calorie, cal and kcal. Their definition was based on the steam table definition (cal = 4.1868*J). The description of the units were not specific, it just stated calorie.
In Kornucopia version 3.0, the units descriptions where clarified and changed to be more consistent with common uses of calorie units. The cal (and kcal) were changed to the food calorie definitions (cal = 4.184*J) and the International Table versions of calorie units for use in steam tables was added (cal_IT = 4.1868*J). In addition, the units of Cal = 4.184*kJ and Cal_IT = 4.1868*kJ were added.
Listed below in the table are the detailed Units definitions for each of the installed Units in Kornucopia.
To see this list live in MATLAB, use the function k_unitsList. Seeing the list live, you will also be able to see any user-defined units too!
In the table below, the column Original Formula displays the given Unit as it was originally defined in Kornucopia. The column Base Definition lists the Units definition in terms of Kornucopia's fundamental Units.
The table, as presented, shows the unit's conversion factors to an accuracy consistent with the default MATLAB format short setting. All of the unit's conversion factors are actually accurate to the full double precision of MATLAB. To see the more accurate representation, issue the MATLAB command format long and then the Kornucopia function k_unitsList('-all'). Also note that the live list will display a column called Source which will show Kornucopia as the source for all Units that are not user-defined.
Default Kornucopia Units, Detailed Definitions List
Unit |
Original Formula |
Base Definition (Short Format) |
Description |
Unit Groups |
% |
% = 0.01 |
% = 0.01 |
percent |
percent, miscellaneous |
1 |
1 = 1 |
1 = 1 |
unity is dimensionless |
miscellaneous |
A |
fundamentalUnit |
A = 1*A |
ampere |
current, fundamental |
acre |
acre = 43560*ft^2 |
acre = 4047*m^2 |
acre |
area |
arcmin |
arcmin = 1/60*deg |
arcmin = 0.0002909*rad |
arc minute |
angle |
arcsec |
arcsec = 1/3600*deg |
arcsec = 4.848e-06*rad |
arc second |
angle |
atm |
atm = 1.013250e5*Pa |
atm = 1.013e+05*kg/(m*s^2) |
atmosphere |
pressure |
bar |
bar = 1e5*Pa |
bar = 1e+05*kg/(m*s^2) |
bar |
pressure |
blob |
blob = 12*slug |
blob = 175.1*kg |
blob |
mass |
BTU |
BTU = 1.055055852620*kJ |
BTU = 1055*m^2*kg/s^2 |
International BTU |
energy |
C |
C = s*A |
C = 1*A*s |
coulomb |
charge |
cal |
cal = 4.184*J |
cal = 4.184*m^2*kg/s^2 |
Thermochemical calorie (food calorie) |
energy |
Cal |
Cal = kcal |
Cal = 4184*m^2*kg/s^2 |
kilocalorie (1000 food calories) |
energy |
cal_IT |
cal_IT = 4.18680*J |
cal_IT = 4.187*m^2*kg/s^2 |
International Table calorie (used in steam tables) |
energy |
Cal_IT |
Cal_IT = kcal_IT |
Cal_IT = 4187*m^2*kg/s^2 |
International Table kilocalorie (used in steam tables) |
energy |
cc |
cc = 1*cm^3 |
cc = 1e-06*m^3 |
cubic centimeter |
volume |
cd |
fundamentalUnit |
cd = 1*cd |
candela |
luminousIntensity, fundamental |
cm |
cm = 1e-2*m |
cm = 0.01*m |
centimeter |
length |
cN |
cN = 1e-2*N |
cN = 0.01*m*kg/s^2 |
centinewton |
force |
cottonCount |
cottonCount = 840*yd/lbm |
cottonCount = 1693*m/kg |
cotton count |
textile |
cP |
cP = 1.0e-2*Poise |
cP = 0.001*kg/(m*s) |
centipoise |
viscosity |
cps |
cps = rev/s |
cps = 6.283*rad/s |
cycle per second |
angularFreq |
currency |
fundamentalUnit |
currency = 1*currency |
financial currency for money |
currency, fundamental |
day |
day = 24*hr |
day = 86400*s |
day |
time |
deg |
deg = pi/180*rad |
deg = 0.01745*rad |
angular degree |
angle |
degC |
degC = K, affineOffset = AO = - 273.15*degC |
degC = K, AO = - 273.15*degC |
Celsius measure of temperature |
celsius, temperature |
degF |
degF = (5/9)*degC, affineOffset = AO = 32*degF |
degF = (5/9)*degC, AO = 32*degF |
Fahrenheit measure of temperature |
fahrenheit, temperature |
degK |
degK = 1*K |
degK = 1*K |
kelvin |
absTemperature, temperature |
degR |
degR = 5/9*K |
degR = 0.5556*K |
rankine |
absTemperature, temperature |
den |
den = gm/(9*km) |
den = 1.111e-07*kg/m |
denier |
linearMassDensity, textile |
dm |
dm = 1e-1*m |
dm = 0.1*m |
decimater |
length |
dN |
dN = 0.1*N |
dN = 0.1*m*kg/s^2 |
decanewton |
force |
dtex |
dtex = 0.1*tex |
dtex = 1e-07*kg/m |
decitex |
linearMassDensity, textile |
dyn |
dyn = 10e-6*N |
dyn = 1e-05*m*kg/s^2 |
dyne force |
force |
dyne |
dyne = 10e-6*N |
dyne = 1e-05*m*kg/s^2 |
dyne force |
force |
F |
F = A^2*s^4/(kg*m^2) |
F = 1*A^2*s^4/(m^2*kg) |
farad |
capacitance |
floz |
floz = (1/128)*galUS |
floz = 2.957e-05*m^3 |
fluid ounce |
volume |
fortnight |
fortnight = 14*day |
fortnight = 1.21e+06*s |
fortnight |
time |
fps |
fps = ft/s |
fps = 0.3048*m/s |
feet per second |
velocity |
ft |
ft = 12*in |
ft = 0.3048*m |
foot |
length |
furlong |
furlong = 1/8*mile |
furlong = 201.2*m |
furlong |
length |
fWb |
fWb = 1e-15*m^2*kg/(A*s^2) |
fWb = 1e-15*m^2*kg/(A*s^2) |
femtoweber |
magnetism |
G |
G = 9.806650*m/s^2 |
G = 9.807*m/s^2 |
accel of standard gravity |
acceleration |
galUK |
galUK = 4.54609*L |
galUK = 0.004546*m^3 |
UK gallon |
volume |
galUS |
galUS = 3.785411784*L |
galUS = 0.003785*m^3 |
US gallon |
volume |
Gauss |
Gauss = 1e-4*kg/(A*s^2) |
Gauss = 0.0001*kg/(A*s^2) |
gauss |
magnetism |
gauss |
gauss = 1e-4*kg/(A*s^2) |
gauss = 0.0001*kg/(A*s^2) |
gauss |
magnetism |
GC |
GC = 1e9*s*A |
GC = 1e+09*A*s |
gigacoulomb |
charge |
GF |
GF = 1e9*A^2*s^4/(kg*m^2) |
GF = 1e+09*A^2*s^4/(m^2*kg) |
gigafarad |
capacitance |
gf |
gf = (9.806650*m/s^2)*gm |
gf = 0.009807*m*kg/s^2 |
gram force |
force |
GH |
GH = 1e9*m^2*kg/(s^2*A^2) |
GH = 1e+09*m^2*kg/(A^2*s^2) |
gigahenry |
inductance |
GHz |
GHz = 1e9*Hz |
GHz = 1e+09*1/s |
gigahertz |
frequency |
gm |
gm = 1e-3*kg |
gm = 0.001*kg |
gram mass |
mass |
gmf |
gmf = (9.806650*m/s^2)*gm |
gmf = 0.009807*m*kg/s^2 |
gram force |
force |
Gohm |
Gohm = 1e9*m^2*kg/(s^3*A^2) |
Gohm = 1e+09*m^2*kg/(A^2*s^3) |
gigaohm |
resistance |
GPa |
GPa = 1e9*Pa |
GPa = 1e+09*kg/(m*s^2) |
gigapascal |
pressure |
gpd |
gpd = gf/den |
gpd = 88260*m^2/s^2 |
gram force per denier |
textile |
grn |
grn = 1/7000*lbm |
grn = 6.48e-05*kg |
grain mass |
mass |
GS |
GS = 1e9*s^3*A^2/(m^2*kg) |
GS = 1e+09*A^2*s^3/(m^2*kg) |
gigasiemens |
conductance |
GSa |
GSa = 1e9 |
GSa = 1e+09 |
gigasample |
miscellaneous |
GT |
GT = 1e9*kg/(A*s^2) |
GT = 1e+09*kg/(A*s^2) |
gigatesla |
magnetism |
GV |
GV = 1e9*m^2*kg/(s^3*A) |
GV = 1e+09*m^2*kg/(A*s^3) |
gigavolt |
potential |
GW |
GW = 1e9*W |
GW = 1e+09*m^2*kg/s^3 |
gigawatt |
power |
GWb |
GWb = 1e9*m^2*kg/(A*s^2) |
GWb = 1e+09*m^2*kg/(A*s^2) |
gigaweber |
magnetism |
H |
H = m^2*kg/(s^2*A^2) |
H = 1*m^2*kg/(A^2*s^2) |
henry |
inductance |
hp |
hp = 33e3*ft*lbf/min |
hp = 745.7*m^2*kg/s^3 |
horse power |
power |
hr |
hr = 60*min |
hr = 3600*s |
hour |
time |
Hz |
Hz = 1/s |
Hz = 1*1/s |
hertz |
frequency |
in |
in = 0.0254*m |
in = 0.0254*m |
inch |
length |
inch |
inch = 0.0254*m |
inch = 0.0254*m |
inch |
length |
inHg |
inHg = (in/mm)*mmHg |
inHg = 3386*kg/(m*s^2) |
inches of mercury |
pressure |
ips |
ips = in/s |
ips = 0.0254*m/s |
inch per second |
velocity |
J |
J = N*m |
J = 1*m^2*kg/s^2 |
joule |
energy |
K |
fundamentalUnit |
K = 1*K |
kelvin |
absTemperature, temperature, fundamental |
kC |
kC = 1e3*s*A |
kC = 1000*A*s |
kilocoulomb |
charge |
kcal |
kcal = 1e3*cal |
kcal = 4184*m^2*kg/s^2 |
kilocalorie (1000 food calories) |
energy |
kcal_IT |
kcal_IT = 1e3*cal_IT |
kcal_IT = 4187*m^2*kg/s^2 |
International Table kilocalorie (used in steam tables) |
energy |
kF |
kF = 1e3*A^2*s^4/(kg*m^2) |
kF = 1000*A^2*s^4/(m^2*kg) |
kilofarad |
capacitance |
kG |
kG = 1e3*G |
kG = 9807*m/s^2 |
1000 * accel of stand. grav. |
acceleration |
kg |
fundamentalUnit |
kg = 1*kg |
kilogram |
mass, fundamental |
kgf |
kgf = (9.806650*m/s^2)*kg |
kgf = 9.807*m*kg/s^2 |
kilogram force |
force |
kH |
kH = 1e3*m^2*kg/(s^2*A^2) |
kH = 1000*m^2*kg/(A^2*s^2) |
kilohenry |
inductance |
kHz |
kHz = 1e3*Hz |
kHz = 1000*1/s |
kilohertz |
frequency |
kip |
kip = 1000*lbf |
kip = 4448*m*kg/s^2 |
1000 pound force |
force |
kJ |
kJ = 1e3*J |
kJ = 1000*m^2*kg/s^2 |
kilojoule |
energy |
km |
km = 1e3*m |
km = 1000*m |
kilometer |
length |
kN |
kN = 1e3*N |
kN = 1000*m*kg/s^2 |
kilonewton |
force |
knot |
knot = (1852/3600)*m/s |
knot = 0.5144*m/s |
1 nautical mile per hour |
velocity |
kohm |
kohm = 1e3*m^2*kg/(s^3*A^2) |
kohm = 1000*m^2*kg/(A^2*s^3) |
kilohm |
resistance |
kPa |
kPa = 1e3*Pa |
kPa = 1000*kg/(m*s^2) |
kilopascal |
pressure |
kph |
kph = km/hr |
kph = 0.2778*m/s |
kilometers per hour |
velocity |
kS |
kS = 1e3*s^3*A^2/(m^2*kg) |
kS = 1000*A^2*s^3/(m^2*kg) |
kilosiemens |
conductance |
kSa |
kSa = 1e3 |
kSa = 1e+03 |
kilosample |
miscellaneous |
ksi |
ksi = 1e3*psi |
ksi = 6.895e+06*kg/(m*s^2) |
1000 psi |
pressure |
kT |
kT = 1e3*kg/(A*s^2) |
kT = 1000*kg/(A*s^2) |
kilotesla |
magnetism |
kV |
kV = 1e3*m^2*kg/(s^3*A) |
kV = 1000*m^2*kg/(A*s^3) |
kilovolt |
potential |
kW |
kW = 1e3*W |
kW = 1000*m^2*kg/s^3 |
kilowatt |
power |
kWb |
kWb = 1e3*m^2*kg/(A*s^2) |
kWb = 1000*m^2*kg/(A*s^2) |
kiloweber |
magnetism |
L |
L = 1e-3*m^3 |
L = 0.001*m^3 |
liter |
volume |
lbf |
lbf = 4.44822161526050*N |
lbf = 4.448*m*kg/s^2 |
pound force |
force |
lbm |
lbm = 1/9.806650*ft/m*slug |
lbm = 0.4536*kg |
pound mass |
mass |
lumen |
lumen = cd |
lumen = 1*cd |
lumen |
luminousIntensity |
lux |
lux = cd/m^2 |
lux = 1*cd/m^2 |
lux |
illuminance |
lx |
lx = cd/m^2 |
lx = 1*cd/m^2 |
lux |
illuminance |
m |
fundamentalUnit |
m = 1*m |
meter |
length, fundamental |
mA |
mA = 1e-3*A |
mA = 0.001*A |
milliamp |
current |
mbar |
mbar = 1e2*Pa |
mbar = 100.000*kg/(m*s^2) |
millibar |
pressure |
MC |
MC = 1e6*s*A |
MC = 1e+06*A*s |
megacoulomb |
charge |
mC |
mC = 1e-3*s*A |
mC = 0.001*A*s |
millicoulomb |
charge |
MF |
MF = 1e6*A^2*s^4/(kg*m^2) |
MF = 1e+06*A^2*s^4/(m^2*kg) |
megafarad |
capacitance |
mF |
mF = 1e-3*A^2*s^4/(kg*m^2) |
mF = 0.001*A^2*s^4/(m^2*kg) |
millifarad |
capacitance |
Mg |
Mg = 1e3*kg |
Mg = 1000*kg |
megagram mass |
mass |
mg |
mg = 1e-6*kg |
mg = 1e-06*kg |
milligram mass |
mass |
mG |
mG = 1e-3*G |
mG = 0.009807*m/s^2 |
1e-3 * accel of stand. grav. |
acceleration |
mgpd |
mgpd = 10^-3*gf/den |
mgpd = 88.26*m^2/s^2 |
milligram force per denier |
textile |
MH |
MH = 1e6*m^2*kg/(s^2*A^2) |
MH = 1e+06*m^2*kg/(A^2*s^2) |
megahenry |
inductance |
mH |
mH = 1e-3*m^2*kg/(s^2*A^2) |
mH = 0.001*m^2*kg/(A^2*s^2) |
millihenry |
inductance |
MHz |
MHz = 1e6*Hz |
MHz = 1e+06*1/s |
megahertz |
frequency |
micro |
micro = 1e-6 |
micro = 1e-06 |
micro |
miscellaneous |
microgram |
microgram = 1e-9*kg |
microgram = 1e-09*kg |
microgram mass |
mass |
micron |
micron = 1e-6*m |
micron = 1e-06*m |
micron |
length |
microsec |
microsec = 1e-6*s |
microsec = 1e-06*s |
microsecond |
time |
microStrain |
microStrain = 1*uStrain |
microStrain = 1.000e-06 |
microStrain |
strain, microStrain |
microV |
microV = 1e-6*m^2*kg/(s^3*A) |
microV = 1e-06*m^2*kg/(A*s^3) |
microvolt |
potential |
mil |
mil = 1e-3*in |
mil = 2.54e-05*m |
0.001*inch |
length |
mile |
mile = 5.28e3*ft |
mile = 1609*m |
mile |
length |
milliStrain |
milliStrain = 1e-3 |
milliStrain = 0.001 |
millistrain |
strain |
min |
min = 60*s |
min = 60*s |
minute |
time |
minute |
minute = 60*s |
minute = 60*s |
minute |
time |
MJ |
MJ = 1e6*J |
MJ = 1.000e+06*m^2*kg/s^2 |
megajoule |
energy |
mJ |
mJ = 1e-3*J |
mJ = 0.001*m^2*kg/s^2 |
millijoule |
energy |
mL |
mL = 1e-6*m^3 |
mL = 1e-06*m^3 |
milliliter |
volume |
mm |
mm = 1e-3*m |
mm = 0.001*m |
millimeter |
length |
mmHg |
mmHg = 133.322387415*Pa |
mmHg = 133.3*kg/(m*s^2) |
millimeters of mercury |
pressure |
mN |
mN = 1e-3*N |
mN = 0.001*m*kg/s^2 |
millinewton |
force |
Mohm |
Mohm = 1e6*m^2*kg/(s^3*A^2) |
Mohm = 1e+06*m^2*kg/(A^2*s^3) |
megaohm |
resistance |
mohm |
mohm = 1e-3*m^2*kg/(s^3*A^2) |
mohm = 0.001*m^2*kg/(A^2*s^3) |
milliohm |
resistance |
mol |
fundamentalUnit |
mol = 1*mol |
mole |
substance, fundamental |
MPa |
MPa = 1e6*Pa |
MPa = 1e+06*kg/(m*s^2) |
megapascal |
pressure |
mph |
mph = mile/hr |
mph = 0.447*m/s |
miles per hour |
velocity |
mrad |
mrad = 1e-3*rad |
rad = 1e-03*rad |
milliradian |
angle |
MS |
MS = 1e6*s^3*A^2/(m^2*kg) |
MS = 1e+06*A^2*s^3/(m^2*kg) |
megasiemens |
conductance |
mS |
mS = 1e-3*s^3*A^2/(m^2*kg) |
mS = 0.001*A^2*s^3/(m^2*kg) |
millisiemens |
conductance |
ms |
ms = 1e-3*s |
ms = 0.001*s |
millisecond |
time |
MSa |
MSa = 1e6 |
MSa = 1e+06 |
megasample |
miscellaneous |
msec |
msec = 1e-3*s |
msec = 0.001*s |
millisecond |
time |
msnail |
msnail = 1e-3*snail |
msnail = 0.1751*kg |
millisnail |
mass |
mStrain |
mStrain = 1e-3 |
mStrain = 0.001 |
millistrain |
strain |
MT |
MT = 1e6*kg/(A*s^2) |
MT = 1e+06*kg/(A*s^2) |
megatesla |
magnetism |
mT |
mT = 1e-3*kg/(A*s^2) |
mT = 0.001*kg/(A*s^2) |
millitesla |
magnetism |
MV |
MV = 1e6*m^2*kg/(s^3*A) |
MV = 1e+06*m^2*kg/(A*s^3) |
megavolt |
potential |
mV |
mV = 1e-3*m^2*kg/(s^3*A) |
mV = 0.001*m^2*kg/(A*s^3) |
millivolt |
potential |
MW |
MW = 1e6*W |
MW = 1e+06*m^2*kg/s^3 |
megawatt |
power |
mW |
mW = 1e-3*W |
mW = 0.001*m^2*kg/s^3 |
milliwatt |
power |
MWb |
MWb = 1e6*m^2*kg/(A*s^2) |
MWb = 1e+06*m^2*kg/(A*s^2) |
megaweber |
magnetism |
mWb |
mWb = 1e-3*m^2*kg/(A*s^2) |
mWb = 0.001*m^2*kg/(A*s^2) |
milliweber |
magnetism |
N |
N = kg*m/s^2 |
N = 1*m*kg/s^2 |
newton |
force |
nC |
nC = 1e-9*s*A |
nC = 1e-09*A*s |
nanocoulomb |
charge |
nF |
nF = 1e-9*A^2*s^4/(kg*m^2) |
nF = 1e-09*A^2*s^4/(m^2*kg) |
nanofarad |
capacitance |
nH |
nH = 1e-9*m^2*kg/(s^2*A^2) |
nH = 1e-09*m^2*kg/(A^2*s^2) |
nanohenry |
inductance |
nm |
nm = 1e-9*m |
nm = 1e-09*m |
nanometer |
length |
nN |
nN = 1e-9*N |
nN = 1e-09*m*kg/s^2 |
nanonewton |
force |
nohm |
nohm = 1e-9*m^2*kg/(s^3*A^2) |
nohm = 1e-09*m^2*kg/(A^2*s^3) |
nanoohm |
resistance |
nS |
nS = 1e-9*s^3*A^2/(m^2*kg) |
nS = 1e-09*A^2*s^3/(m^2*kg) |
nanosiemens |
conductance |
ns |
ns = 1e-9*s |
ns = 1.000e-9*s |
nanosecond |
time |
nsec |
nsec = 1e-9*s |
nsec = 1.000e-9*s |
nanosecond |
time |
nT |
nT = 1e-9*kg/(A*s^2) |
nT = 1e-09*kg/(A*s^2) |
nanotesla |
magnetism |
nV |
nV = 1e-9*m^2*kg/(s^3*A) |
nV = 1e-09*m^2*kg/(A*s^3) |
nanovolt |
potential |
nW |
nW = 1e-9*W |
nW = 1e-09*m^2*kg/s^3 |
nanowatt |
power |
nWb |
nWb = 1e-9*m^2*kg/(A*s^2) |
nWb = 1e-09*m^2*kg/(A*s^2) |
nanoweber |
magnetism |
Oe |
Oe = (250/pi)*A/m |
Oe = 79.58*A/m |
oersted |
magnetism |
Oersted |
Oersted = (250/pi)*A/m |
Oersted = 79.58*A/m |
oersted |
magnetism |
oersted |
oersted = (250/pi)*A/m |
oersted = 79.58*A/m |
oersted |
magnetism |
ohm |
ohm = m^2*kg/(s^3*A^2) |
ohm = 1*m^2*kg/(A^2*s^3) |
ohm |
resistance |
oz |
oz = 1/16*lbm |
oz = 0.02835*kg |
ounce mass, US Customary |
mass |
ozf |
ozf = (9.806650*m/s^2)*oz |
ozf = 0.278*m*kg/s^2 |
ounce force |
force |
Pa |
Pa = N/m^2 |
Pa = 1*kg/(m*s^2) |
pascal |
pressure |
pC |
pC = 1e-12*s*A |
pC = 1e-12*A*s |
picocoulomb |
charge |
pF |
pF = 1e-12*A^2*s^4/(kg*m^2) |
pF = 1e-12*A^2*s^4/(m^2*kg) |
picofarad |
capacitance |
pH |
pH = 1e-12*m^2*kg/(s^2*A^2) |
pH = 1e-12*m^2*kg/(s^2*A^2) |
picohenry |
inductance |
pli |
pli = lbf/in |
pli = 175.1*kg/s^2 |
lbf per inch |
forcePerLength |
pN |
pN = 1e-12*N |
pN = 1e-12*m*kg/s^2 |
piconewton |
force |
Poise |
Poise = dyne*s/cm^2 |
Poise = 0.1*kg/(m*s) |
poise |
viscosity |
poise |
poise = dyne*s/cm^2 |
poise = 0.1*kg/(m*s) |
poise |
viscosity |
psf |
psf = lbf/ft^2 |
psf = 47.88*kg/(m*s^2) |
lbf per square ft |
pressure |
psi |
psi = 1*lbf/in^2 |
psi = 6895*kg/(m*s^2) |
lbf/in^2 |
pressure |
pV |
pV = 1e-12*m^2*kg/(s^3*A) |
pV = 1e-12*m^2*kg/(A*s^3) |
picovolt |
potential |
pWb |
pWb = 1e-12*m^2*kg/(A*s^2) |
pWb = 1e-12*m^2*kg/(A*s^2) |
picoweber |
magnetism |
R |
R = 5/9*K |
R = 0.5556*K |
rankine |
absTemperature, temperature |
rad |
fundamentalUnit |
rad = 1*rad |
radian |
fundamental, angle |
rev |
rev = 2*pi*rad |
rev = 6.283*rad |
revolution |
angle |
RPM |
RPM = rev/min |
RPM = 0.1047*rad/s |
revolution per minute |
angularFreq |
rpm |
rpm = rev/min |
rpm = 0.1047*rad/s |
revolution per minute |
angularFreq |
S |
S = s^3*A^2/(m^2*kg) |
S = 1*A^2*s^3/(m^2*kg) |
siemens |
conductance |
s |
fundamentalUnit |
s = 1*s |
second |
time, fundamental |
Sa |
Sa = 1 |
Sa = 1 |
sample |
miscellaneous |
sec |
sec = s |
sec = 1*s |
second |
time |
slinch |
slinch = 12*slug |
slinch = 175.1*kg |
slug for inches |
mass |
slug |
slug = 14.59390293720640*kg |
slug = 14.59*kg |
slug |
mass |
snail |
snail = 12*slug |
snail = 175.1*kg |
snail |
mass |
T |
T = kg/(A*s^2) |
T = 1*kg/(A*s^2) |
tesla |
magnetism |
Tesla |
Tesla = kg/(A*s^2) |
Tesla = 1*kg/(A*s^2) |
tesla |
magnetism |
tesla |
tesla = kg/(A*s^2) |
tesla = 1*kg/(A*s^2) |
tesla |
magnetism |
tex |
tex = gm/km |
tex = 1e-06*kg/m |
tex |
linearMassDensity, textile |
THz |
THz = 1e12*Hz |
THz = 1e+12*1/s |
terahertz |
frequency |
ton |
ton = 2000*lbm |
ton = 907.2*kg |
US ton, also called short ton |
mass |
tonne |
tonne = 1e3*kg |
tonne = 1000*kg |
metric ton |
mass |
torr |
torr = 1/760*atm |
torr = 133.3*kg/(m*s^2) |
torr |
pressure |
TSa |
TSa = 1e12 |
TSa = 1e+12 |
terasample |
miscellaneous |
uC |
uC = 1e-6*s*A |
uC = 1e-06*A*s |
microcoulomb |
charge |
uF |
uF = 1e-6*A^2*s^4/(kg*m^2) |
uF = 1e-06*A^2*s^4/(m^2*kg) |
microfarad |
capacitance |
ug |
ug = 1e-9*kg |
ug = 1e-09*kg |
microgram mass |
mass |
uH |
uH = 1e-6*m^2*kg/(s^2*A^2) |
uH = 1e-06*m^2*kg/(A^2*s^2) |
microhenry |
inductance |
uJ |
uJ = 1e-6*J |
uJ = 1.000e-06*m^2*kg/s^2 |
microjoule |
energy |
um |
um = 1e-6*m |
um = 1e-06*m |
micron |
length |
uN |
uN = 1e-6*N |
uN = 1e-06*m*kg/s^2 |
micronewton |
force |
uohm |
uohm = 1e-6*m^2*kg/(s^3*A^2) |
uohm = 1e-06*m^2*kg/(A^2*s^3) |
microohm |
resistance |
urad |
urad = 1e-6*rad |
urad = 1e-06*rad |
microradian |
angle |
uS |
uS = 1e-6*s^3*A^2/(m^2*kg) |
uS = 1e-06*A^2*s^3/(m^2*kg) |
microsiemens |
conductance |
us |
us = 1e-6*s |
us = 1e-06*s |
microsecond |
time |
usec |
usec = 1e-6*s |
usec = 1e-06*s |
microsecond |
time |
usnail |
usnail = 1e-6*snail |
usnail = 0.0001751*kg |
microsnail |
mass |
uStrain |
uStrain = 1e-6 |
uStrain = 1e-06 |
microStrain |
strain, microStrain |
uT |
uT = 1e-6*kg/(A*s^2) |
uT = 1e-06*kg/(A*s^2) |
microtesla |
magnetism |
uV |
uV = 1e-6*m^2*kg/(s^3*A) |
uV = 1e-06*m^2*kg/(A*s^3) |
microvolt |
potential |
uW |
uW = 1e-6*W |
uW = 1e-06*m^2*kg/s^3 |
microwatt |
power |
uWb |
uWb = 1e-6*m^2*kg/(A*s^2) |
uWb = 1e-06*m^2*kg/(A*s^2) |
microweber |
magnetism |
V |
V = m^2*kg/(s^3*A) |
V = 1*m^2*kg/(A*s^3) |
volt |
potential |
W |
W = N*m/s |
W = 1*m^2*kg/s^3 |
watt |
power |
Wb |
Wb = m^2*kg/(A*s^2) |
Wb = 1*m^2*kg/(A*s^2) |
weber |
magnetism |
Weber |
Weber = m^2*kg/(A*s^2) |
Weber = 1*m^2*kg/(A*s^2) |
weber |
magnetism |
weber |
weber = m^2*kg/(A*s^2) |
weber = 1*m^2*kg/(A*s^2) |
weber |
magnetism |
yd |
yd = 3*ft |
yd = 0.9144*m |
yard |
length |
° |
° = pi/180*rad |
° = 0.01745*rad |
angular degree |
angle |
°C |
°C = K, affineOffset = AO = -273.15*degC |
°C = K, AO = -273.15*degC |
Celsius measure of temperature |
celsius, temperature |
°F |
°F = (5/9)*°C, affineOffset = AO = 32*°F |
°F = (5/9)*°C, AO = 32*°F |
Fahrenheit measure of temperature |
fahrenheit, temperature |
°K |
°K = 1*K |
°K = 1*K |
kelvin |
absTemperature, temperature |
°R |
°R = 5/9*K |
°R = 0.5556*K |
rankine |
absTemperature, temperature |
µ |
µ = 1e-6 |
µ = 1e-06 |
micro |
miscellaneous |
µC |
µC = 1e-6*s*A |
µC = 1e-06*A*s |
microcoulomb |
charge |
µF |
µF = 1e-6*A^2*s^4/(kg*m^2) |
µF = 1e-06*A^2*s^4/(m^2*kg) |
microfarad |
capacitance |
µg |
µg = 1e-9*kg |
µg = 1e-09*kg |
microgram |
mass |
µH |
µH = 1e-6*m^2*kg/(s^2*A^2) |
µH = 1e-06*m^2*kg/(A^2*s^2) |
microhenry |
inductance |
µJ |
µJ = 1e-6*J |
µJ = 1.000e-06*m^2*kg/s^2 |
microjoule |
energy |
µm |
µm = 1e-6*m |
µm = 1e-06*m |
micron |
length |
µN |
µN = 1e-6*N |
µN = 1e-06*m*kg/s^2 |
Micronewton |
force |
µohm |
µohm = 1e-6*m^2*kg/(s^3*A^2) |
µohm = 1e-06*m^2*kg/(A^2*s^3) |
microohm |
resistance |
µS |
µS = 1e-6*s^3*A^2/(m^2*kg) |
µS = 1e-06*A^2*s^3/(m^2*kg) |
microsiemens |
conductance |
µs |
µs = 1e-6*s |
µs = 1e-06*s |
microsecond |
time |
µsec |
µsec = 1e-6*s |
µsec = 1e-06*s |
microsecond |
time |
µsnail |
µsnail = 1e-6*snail |
µsnail = 0.0001751*kg |
microsnail |
mass |
µStrain |
µStrain = 1*uStrain |
µStrain = 1e-06 |
microStrain |
strain, microsStrain |
µT |
µT = 1e-6*kg/(A*s^2) |
µT = 1e-06*kg/(A*s^2) |
microtesla |
magnetism |
µV |
µV = 1e-6*m^2*kg/(s^3*A) |
µV = 1e-06*m^2*kg/(A*s^3) |
microvolt |
potential |
µW |
µW = 1e-6*W |
µW = 1e-06*m^2*kg/s^3 |
microwatt |
power |
µWb |
µWb = 1e-6*m^2*kg/(A*s^2) |
µWb = 1e-06*m^2*kg/(A*s^2) |
microweber |
magnetism |
In addition to the table of Units listed above, the following are treated as dimensionless Units:
A null string, ''
.
A single quote string, '
.
The single quote string syntax often occurs when the user utilizes a string-list syntax to enter multiple units and one or more of the units are dimensionless. For example, consider the case of specifying units for an array with three columns containing time, strain, and stress. The array is to have units of second, dimensionless, and megapascal. You could supply, using string-list syntax, the Units Property as 's, '', MPa'. In MATLAB, evaluating such a string actually results in the string s, ', MPa because the leading quote of the successive single quotes in the definition is like an escape code telling MATLAB to not end the initial string definition to be just 's, '. Yes, this seems a bit confusing, possibly. Bottom line, Kornucopia handles this kind of syntax issue and allows you to make such a specification as the initial definition, using a string-list, appears to make sense to most users (without the exacting interpretation of syntax that was just explained).
The number 1, entered as a string, '1'
.
Listed below are the default Units Preferences available in Kornucopia. To see this list live in MATLAB, use the function k_unitsPreferenceList. The live list will also include any user-defined Units Preferences.
Units Preference Name |
Units In the Preference |
none |
|
fundamental |
m, kg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain |
ft_lbf_s |
ft, slug, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, lbf, lbf*ft, lbf/ft, ft/lbf, psf, 1/psf |
ft_lbf_s_V |
ft, slug, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, lbf, lbf*ft, lbf/ft, ft/lbf, psf, 1/psf, V, ohm, S, C, F, H, Wb, T |
in_lbf_slinch_s |
in, slinch, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, lbf, lbf*in, lbf/in, in/lbf, psi, 1/psi |
in_lbf_slinch_s_V |
in, slinch, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, lbf, lbf*in, lbf/in, in/lbf, psi, 1/psi, V, ohm, S, C, F, H, Wb, T |
in_lbf_snail_s |
in, snail, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, lbf, lbf*in, lbf/in, in/lbf, psi |
in_lbf_snail_s_V |
in, snail, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, lbf, lbf*in, lbf/in, in/lbf, psi, 1/psi, V, ohm, S, C, F, H, Wb, T |
m_N_s |
m, kg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain, N, N*m, N/m, m/N, Pa, 1/Pa, V, ohm, S, C, F, H, Wb, T |
mm_N_ms |
mm, gm, A, mol, cd, currency, ms, K, degC, degF, rad, kHz, %, uStrain, N, N*mm, N/mm, mm/N, MPa, 1/MPa, V, ohm, S, mC, mF, mH, mWb, kT |
mm_N_s |
mm, Mg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain, N, N*mm, N/mm, mm/N, MPa, 1/MPa, mV, mohm, kS, C, kF, mH, mWb, kT |
nm_nN_ms |
nm, mg, mA, mol, cd, currency, ms, K, degC, degF, rad, kHz, %, uStrain, nN, nN*nm, nN/nm, nm/nN, GPa, 1/GPa, pV, nohm, GS, uC, MF, pH, fWb, kT |
ShockVib_ft_ms_G |
ft, slug, A, mol, cd, currency, ms, R, degC, degF, rad, kHz, %, uStrain, ft/s, G, G^2, hp/slug, lbf, lbf*ft, lbf/ft, ft/lbf, psf, 1/psf, V, ohm, S, C, F, H, Wb, T |
ShockVib_ft_ms_kG |
ft, slug, A, mol, cd, currency, ms, R, degC, degF, rad, kHz, %, uStrain, ft/s, kG, kG^2, hp/slug, lbf, lbf*ft, lbf/ft, ft/lbf, psf, 1/psf, V, ohm, S, C, F, H, Wb, T |
ShockVib_ft_s_G |
ft, slug, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, G, G^2, hp/slug, lbf, lbf*ft, lbf/ft, ft/lbf, psf, 1/psf, V, ohm, S, C, F, H, Wb, T |
ShockVib_ft_s_kG |
ft, slug, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, kG, kG^2, hp/slug, lbf, lbf*ft, lbf/ft, ft/lbf, psf, 1/psf, V, ohm, S, C, F, H, Wb, T |
ShockVib_in_ms_G_snail |
in, snail, A, mol, cd, currency, ms, R, degC, degF, rad, kHz, %, uStrain, in/s, G, G^2, hp/snail, lbf, lbf*in, lbf/in, in/lbf, psi, 1/psi, V, ohm, S, C, F, H, Wb, T |
ShockVib_in_s_G_snail |
in, snail, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, G, G^2, hp/snail, lbf, lbf*in, lbf/in, in/lbf, psi, 1/psi, V, ohm, S, C, F, H, Wb, T |
ShockVib_in_ms_kG_snail |
in, snail, A, mol, cd, currency, ms, R, degC, degF, rad, kHz, %, uStrain, in/s, kG, kG^2, hp/snail, lbf, lbf*in, lbf/in, in/lbf, psi, 1/psi, V, ohm, S, C, F, H, Wb, T |
ShockVib_in_s_kG_snail |
in, snail, A, mol, cd, currency, s, R, degC, degF, rad, Hz, %, uStrain, kG, kG^2, hp/snail, lbf, lbf*in, lbf/in, in/lbf, psi, 1/psi, V, ohm, S, C, F, H, Wb, T |
ShockVib_m_ms_G |
m, kg, A, mol, cd, currency, ms, K, degC, degF, rad, kHz, %, uStrain, G, G^2, kW/kg, N, N*m, N/m, m/N, Pa, 1/Pa, V, ohm, S, C, F, H, Wb, T |
ShockVib_m_ms_kG |
m, kg, A, mol, cd, currency, ms, K, degC, degF, rad, kHz, %, uStrain, kG, kG^2, MW/kg, N, N*m, N/m, m/N, Pa, 1/Pa, V, ohm, S, C, F, H, Wb, T |
ShockVib_m_s_G |
m, kg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain, G, G^2, kW/kg, N, N*m, N/m, m/N, Pa, 1/Pa, V, ohm, S, C, F, H, Wb, T |
ShockVib_m_s_kG |
m, kg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, kG, kG^2, MW/kg, N, N*m, N/m, m/N, Pa, 1/Pa, V, ohm, S, C, F, H, Wb, T |
ShockVib_mm_ms_G |
mm, gm, A, mol, cd, currency, ms, K, degC, degF, rad, kHz, %, uStrain, G, G^2, kW/kg, N, N*mm, N/mm, mm/N, MPa, 1/MPa, V, ohm, S, mC, mF, mH, mWb, kT |
ShockVib_mm_ms_kG |
mm, gm, A, mol, cd, currency, ms, K, degC, degF, rad, kHz, %, uStrain, kG, kG^2, MW/kg, N, N*mm, N/mm, mm/N, MPa, 1/MPa, V, ohm, S, mC, mF, mH, mWb, kT |
ShockVib_mm_s_G |
mm, Mg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain, G, G^2, kW/kg, N, N*mm, N/mm, mm/N, MPa, 1/MPa, mV, mohm, kS, C, kF, mH, mWb, kT |
ShockVib_mm_s_kG |
mm, Mg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain, kG, kG^2, MW/kg, N, N*mm, N/mm, mm/N, MPa, 1/MPa, mV, mohm, kS, C, kF, mH, mWb, kT |
SI_partial |
m, kg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain, N, N*m, N/m, m/N, Pa, 1/Pa, V, ohm, S, C, F, H, Wb, T |
um_mN_ms |
um, gm, A, mol, cd, currency, ms, K, degC, degF, rad, kHz, %, uStrain, mN, mN*um, mN/um, um/mN, GPa, 1/GPa, uV, uohm, MS, mC, kF, nH, nWb, kT |
um_mN_s |
um, Mg, A, mol, cd, currency, s, K, degC, degF, rad, Hz, %, uStrain, mN, mN*um, mN/um, um/mN, GPa, 1/GPa, nV, nohm, GS, C, GF, nH, nWb, kT |
um_mN_us |
um, ug, A, mol, cd, currency, us, K, degC, degF, rad, MHz, %, uStrain, mN, mN*um, mN/um, um/mN, GPa, 1/GPa, mV, mohm, kS, uC, mF, nH, nWb, kT |
A few items of note for Units Preferences are listed below.
Units Preferences are used to tell Kornucopia what set of Units to return your calculated results in. If a calculation results in Units that are not explicitly called-out in the active Units Preference, then the result will be returned in terms of an appropriate multiplicative combination of the Preference's base units.
For each of the Units Preferences listed above (excluding the none preference), the first 13 Units are considered as that Preference's base Units. These base Units are the units that represent the 13 Units Signatures that Kornucopia tracks.
It is further noted that the Units strings representing any of the 13 base Units must be "simple strings" without any math operators in them. Other derived units in the preference can be either simple strings or strings with math in them. For example, in the SI_partial Units Preference, the base Unit for length is 'm' (a simple string), the derived units for force and pressure are 'N' and 'Pa' (both simple strings), but the Preference also lists derived units of 'N*m' and 'N/m' which have math in them.
For the Units Preference of none, calculations are left "as is". Using the none preference implies that you are requesting Kornucopia to return calculations in the units you calculated in. This means that a calculation like 5*N*3*mm would be returned as 15*N*mm and that 5*N/(10*in) would be returned as 0.5*N/in. Both of these results are correct and valid, although most people would like to see the second calculation returned as either 19.685*N/m or 0.1124*lbf/in (which can easily be achieved by either using the Units Preference m_N_s or in_lbf_snail_s, or by using the .convert method).
The default Units Preference is SI_partial. You can set a different Preference via k_unitsPreferenceActivate and you can define a new Preference via k_unitsPreferenceDefine. Note that defining a Preference does not make it the active Preference, you must use k_unitsPreferenceActivate to activate a given Units Preference.
Note: The Preference SI_partial and m_N_s are identical. Both preference names are included for backwards compatibility purposes for older MATLAB scripts.
You might notice that certain types of units such as units for energy like J for Joule to not appear in any of the pre-defined Units Preferences. This is because the Units Signature for energy is force times distance (or length), and that this same Units Signature is applicable to bending moment and torque. While it is valid and universally understood that both energy and torque (and bending moment) can be represented in terms of force times distance (such as N*m), it is incorrect to represent a torque or moment by the energy unit of J. For cases where you want Joule to be the unit representing your result, you can always use the convert Method or k_unitsConvert function to convert any result to Joule (provided it is a valid conversion). If you find you are doing a lot of "converting" to deal with this, you can easily make a new Units Preference with Joule in it as shown below.
k_unitsPreferenceDefine('tedsPref', 'mm_N_s', 'J, W, W/m^2')
With this statement, we are adding a new Preference called 'tedsPref' to the Units Preference Library. The new Preference is based on the existing Preference named 'mm_N_s' but adds additional preferences of 'J, W, W/m^2' which would likely be useful if a user was doing a lot of heat transfer work (where torque and moment are not likely to be an issue). To have this Preference become active at any time, you just issue the additional command of k_unitsPreferenceActivate('tedsPref').
The Preference fundamental only has the fundamental units in it. This means when this Preference is active, all calculations and their units are converted to an appropriate multiplicative combination of these fundamental units.
You might wonder why in_lbf_s is not a Units Preference name, but there are in_lbf_slinch_s, and in_lbf_snail_s Units Preferences. In short, the later two Units Preferences are indeed Preferences for "in_lbf_s" system, they simply give you two commonly used choices of how to represent the base Unit of mass for the Preference, either via the Unit of 'slinch' or 'snail'. Both 'slinch' and 'snail' are exactly equal to 'lbf*s^2/in', the traditional (and ugly) way to represent mass in the in_lbf_s system. Since the traditional mass Unit for this system is not a "simple string" due to it containing math in it, it cannot be used as a base Unit in Kornucopia. Kornucopia's solution around this is to use the commonly utilized (in Industry in the US) Units of either 'slinch' or 'snail'. It is noted that you can still use 'lbf*s^2/in' as Units in your calculations and you can always convert mass quantities to this set of Units via the convert Method or k_unitsConvert function.
The Preferences ft_lbf_s, in_lbf_slinch_s, and in_lbf_snail_s have no forms of electrical and magnetism units. This is because the US Customary Units (also know as Imperial Units) do not have any such forms of electrical and magnetism units. Technically, only SI and related metric units have electrical and magnetism units. It is noted that the Units Preferences of ft_lbf_s_V, in_lbf_slinch_s_V, and in_lbf_snail_s_V, as well Preferences ShockVib* that are related to US Customary Units, all include electrical and magnetism units, resulting in the fact that these Preferences yield inconsistent units (see here for more info).
The Preferences that begin with ShockVib are simply variations of many of the other preferences, but the ShockVib Preferences include the unit of acceleration (either G or kG, the latter being 1000*G) in the preference, something that is commonly used with shock and vibration analysis. It is noted that because of the inclusion of the acceleration unit of G or kG in these preferences, this results in a preference that holds inconsistent units (see here for more info).
In Kornucopia, there is an important difference to understand between a Units Preference and a Units System. The difference is based on whether Units Consistency is enforced or not.
Units Consistency in a Units Preference or Units System means that derived units (such as force, pressure, or velocity, etc.) have a conversion multiplication factor of 1.0 when the derived unit is defined in terms of the base units of the Preference or System.
The basic idea of a Units Preference is that you are telling the software what Units you want results to be transformed into when calculations are performed. In Kornucopia, Units Consistency is not required for Units Preferences. This added flexibility means you are allowed to define a list of mixed units for a given Preference. Thus, you can have a Preference that returns results where length (and displacement) are in the unit of mm, loads in lbf, and stress in GPa.
Many of the installed Kornucopia Units Preferences are defined to satisfy Units Consistency, with the following notable exceptions of the preferences ft_lbf_s_V, in_lbf_slinch_s_V, in_lbf_snail_s_V, and all the ShockVib preferences.
The first three exceptions listed above are based on forms of US Customary Units (also know as Imperial Units), but they also have commonly used SI electrical and magnetism units such as V (volt), C (coulomb) and such. The combination of US Customary Units and SI units make the Units Preferences violate Units Consistency and thus, while these are valid Units Preferences, they are not Units Systems. The reason these three Preferences are included is that 1) It is common in the US and other places using US Customary Units to have such a mix of units in data and 2) the are no US Customary Units for such electrical and magnetism units (electricity was scientifically discovered in more recent times and never had the old English or US Customary Units definitions).
The ShockVib preferences all include the unit of acceleration (either G or kG, the latter being 1000*G) in the preference, something that is commonly used with shock and vibration analysis. Since neither G nor kG have a conversion multiplication factor of 1.0 when stated in terms of the base units of the Units Preference, the result is that all the ShockVib preferences are not Units Systems, but only Units Preferences.
Thus, in Kornucopia, a Units System is a Units Preference that also satisfies Units Consistency.