Documentation

# correlation

Correlation coefficient between two antennas in array

## Syntax

``correlation(array,frequency,elem1,elem2,z0)``
``rho = correlation(array,frequency,elem1,elem2,z0)``

## Description

example

````correlation(array,frequency,elem1,elem2,z0)` calculates and plots the correlation coefficient between two antenna elements, `elem1` and `elem2` of an array. The correlation values are calculated for a specified frequency and impedance and for a specified impedance `z0`.```

example

````rho = correlation(array,frequency,elem1,elem2,z0)` returns the correlation coefficient between two antenna elements, `elem1` and `elem2` of an array. ```

## Examples

collapse all

Plot the correlation between 1 and 2 antenna elements in a default linear array over a frequency range of 50MHz to 100MHz.

```h = linearArray; correlation (h,50e6:1e6:100e6,1,2);``` Calculate correlation coefficient of default rectangular array at a frequency range of 50MHz to 100MHz.

```h = rectangularArray; rho = correlation (h, 50e6:1e6:100e6, 1, 2)```
```rho = 51×1 0.1419 0.1124 0.0828 0.0526 0.0218 0.0099 0.0426 0.0759 0.1091 0.1406 ⋮ ```

## Input Arguments

collapse all

Array object, specified as a scalar handle.

Frequency range used to calculate correlation, specified as a vector in Hz.

Example: 50e6:1e6:100e6

Data Types: `double`

Antenna elements in an array, specified as a scalar handle.

Reference impedance, specified as a scalar in ohms.

Example: 70

Data Types: `double`

## Output Arguments

collapse all

Correlation coefficient between two antenna elements of an array, returned as a vector.

## See Also

#### Hybrid Beamforming for Massive MIMO Phased Array Systems

Download the white paper
{"ft_lang_label":"__label__en","ft_lang_prob":0.66187274,"math_prob":0.9676967,"size":416,"snap":"2019-35-2019-39","text_gpt3_token_len":103,"char_repetition_ratio":0.18446602,"word_repetition_ratio":0.0,"special_character_ratio":0.19951923,"punctuation_ratio":0.2027027,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9967837,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-08-20T22:29:42Z\",\"WARC-Record-ID\":\"<urn:uuid:abfa98e4-8458-408a-a443-fd65a47624c5>\",\"Content-Length\":\"77434\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:db95340b-57b0-4675-a131-aa9d1b765d25>\",\"WARC-Concurrent-To\":\"<urn:uuid:e90c04dc-ef55-4324-99a4-153f3df5347b>\",\"WARC-IP-Address\":\"23.196.74.206\",\"WARC-Target-URI\":\"https://kr.mathworks.com/help/antenna/ref/correlation.html\",\"WARC-Payload-Digest\":\"sha1:B4WVV2PKV4M7K7TC5TYJDOKCKYNTNYSH\",\"WARC-Block-Digest\":\"sha1:FWHVYKORW2MMF4THLNLSXYBREX2XHEEN\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-35/CC-MAIN-2019-35_segments_1566027315681.63_warc_CC-MAIN-20190820221802-20190821003802-00132.warc.gz\"}"}