Documentation

# getNumOutputs

Number of outputs from calling the System object

## Syntax

``num = getNumOutputs(obj)``

## Description

example

````num = getNumOutputs(obj)` returns the number of outputs, `num`, from calling the object. This value changes when you alter properties that turn outputs on or off.If the object is a sink object, `num` equals zero.```

## Examples

collapse all

Create a `Counter` object and set a property.

```obj = Counter; obj.UseIncrement = false```
```obj = Counter with properties: UseIncrement: false UseWrapValue: true StartValue: 1 Increment: 1 WrapValue: 10 ```

Get the number of inputs and outputs needed to call the object.

`in = getNumInputs(obj)`
```in = 1 ```
`out = getNumOutputs(obj)`
```out = 1 ```

## Input Arguments

collapse all

System object to query for the number of outputs.

## Output Arguments

collapse all

The number of outputs from calling the System object.
{"ft_lang_label":"__label__en","ft_lang_prob":0.62687576,"math_prob":0.9080098,"size":1324,"snap":"2019-51-2020-05","text_gpt3_token_len":354,"char_repetition_ratio":0.121212125,"word_repetition_ratio":0.01843318,"special_character_ratio":0.20921451,"punctuation_ratio":0.12195122,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9626261,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-18T11:59:33Z\",\"WARC-Record-ID\":\"<urn:uuid:751bf506-7b24-4982-aa02-0d070f0e3d66>\",\"Content-Length\":\"70338\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:776dc426-c385-408d-9b18-0cf372eb488d>\",\"WARC-Concurrent-To\":\"<urn:uuid:79d15391-8f36-4597-bb6d-d883dd405a32>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://kr.mathworks.com/help/matlab/ref/getnumoutputs.html\",\"WARC-Payload-Digest\":\"sha1:6HR2PZN4LHKJUN5HWORZ4G23R22G27DK\",\"WARC-Block-Digest\":\"sha1:EUZWJAENBNKMAM6NXEYFP5WOMDWJYTFV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250592565.2_warc_CC-MAIN-20200118110141-20200118134141-00448.warc.gz\"}"}