Skip to Main Content Skip to Search
Product Documentation

Offset - Unit composition modifier

Description

The Offset is the numerical value by which the unit composition is modified from the base unit. For example, °Celsius = (5/9)*(°Fahrenheit-32); Multiplier is 5/9 and Offset is -32.

Characteristics

Applies toObject: Unit
Data typedouble
Data values

Real number. Default is 0.

AccessRead/write

Examples

This example shows how to create a user-defined unit, add it to the user-defined library, and query the library.

  1. Create a user-defined unit called celsius2, whose composition refers to fahrenheit, Multiplier property is 9/5, and Offset property is 32.

    unitObj = sbiounit('celsius2','fahrenheit',9/5,32); 
  2. Add the unit to the user-defined library.

    sbioaddtolibrary(unitObj);
    
  3. Query the Offset property.

    get(unitObj, 'Offset')
    
    ans =
    
    32

See Also

Composition, get, Multiplier, sbioaddtolibrary, sbioshowunits, sbiounit, set

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS