# MATLAB Language Documenting functions Simple Function Documentation

## Example

``````function output = mymult(a, b)
% MYMULT Multiply two numbers.
%   output = MYMULT(a, b) multiplies a and b.
%
%
output = a * b;
end
``````

`help mymult` then provides:

mymult Multiply two numbers.

output = mymult(a, b) multiplies a and b.

`fft` and `sin` automatically link to their respective help text, and Google is a link to google.com. `foo` will not link to any documentation in this case, as long as there is not a documented function/class by the name of `foo` on the search path. PDF - Download MATLAB Language for free
{"ft_lang_label":"__label__en","ft_lang_prob":0.71748585,"math_prob":0.8142036,"size":635,"snap":"2021-43-2021-49","text_gpt3_token_len":172,"char_repetition_ratio":0.117274165,"word_repetition_ratio":0.03773585,"special_character_ratio":0.26456693,"punctuation_ratio":0.19424461,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.986285,"pos_list":[0,1,2],"im_url_duplicate_count":[null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-12-03T16:00:56Z\",\"WARC-Record-ID\":\"<urn:uuid:c0da34d3-72e7-4678-b2ec-e5811ff446de>\",\"Content-Length\":\"34699\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ea323ab3-cab6-4919-be25-5e161bfde366>\",\"WARC-Concurrent-To\":\"<urn:uuid:14285996-0808-4ab7-acb7-5b1b205f0a06>\",\"WARC-IP-Address\":\"40.83.160.29\",\"WARC-Target-URI\":\"https://riptutorial.com/matlab/example/4089/simple-function-documentation\",\"WARC-Payload-Digest\":\"sha1:SXX7UUAIXFSHIXABNU6AMUTZRJNQ6ORJ\",\"WARC-Block-Digest\":\"sha1:BWSCGRURT7INGKL4RVPNGHYAMGGYVX7T\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-49/CC-MAIN-2021-49_segments_1637964362891.54_warc_CC-MAIN-20211203151849-20211203181849-00320.warc.gz\"}"}