Unit Conversion Toolbox Overview

The unit conversion toolbox connects a simple Matlab variable with a name of a unit, such as feet or mph. When the unit has been attached, variables can be used in much the same way as any Matlab variable. Variables can represent a scalar, a vector, or an array. Variables can be operated on by standard mathematical operators like add, subtract, multiply, or divide. Other functions which accept units are also available. These include including exponentiation, trigonometric, hyperbolic functions.

Variables can be converted to another unit type, such as feet to yards or miles-per-hour to feet-per-second. Units that are not directly available in the conversion table (which is extensive) can be constructed from available units, such as 'feet/second'.

Plotting routines that accept variables with units are also available. These routines differ slightly from the standard routines in that the default axis labels are created from the names of the X and Y variables being plotted. The units for these variables are shown in the default axis labels as well. For multiple values of Y, each vector must be placed in a structure. The field names of the structure are then used to create a legend for the plot. Defaults labels can be altered with the standard xlabel and ylabel commands.
{"ft_lang_label":"__label__en","ft_lang_prob":0.91596985,"math_prob":0.88325286,"size":1318,"snap":"2022-05-2022-21","text_gpt3_token_len":257,"char_repetition_ratio":0.12557077,"word_repetition_ratio":0.00952381,"special_character_ratio":0.18816389,"punctuation_ratio":0.10612245,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9773221,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-01-20T23:56:49Z\",\"WARC-Record-ID\":\"<urn:uuid:78f218fe-2797-41b6-bdce-51dcece372ee>\",\"Content-Length\":\"24092\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6a27cfd3-ad3f-4bef-a34a-ac5623c37099>\",\"WARC-Concurrent-To\":\"<urn:uuid:6972491d-72a1-45bf-955b-cd295f3f68e8>\",\"WARC-IP-Address\":\"23.47.146.88\",\"WARC-Target-URI\":\"https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/29621/versions/6/previews/UnitConversion-rev2/html/Overview.htm\",\"WARC-Payload-Digest\":\"sha1:7AAQN7BPFP7XIY4FPJYT2U2QWJLBVRPM\",\"WARC-Block-Digest\":\"sha1:2DYGWH5YWO33CRBLD7E3TLSF26U3DMHG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-05/CC-MAIN-2022-05_segments_1642320302706.62_warc_CC-MAIN-20220120220649-20220121010649-00114.warc.gz\"}"}