This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

macaddr

Convert character vector or string scalar MAC address to vector-based address

Syntax

macaddr(MAC_address)

Description

example

macaddr(MAC_address) converts a character vector or string scalar MAC address to a vector-based MAC address.

Examples

collapse all

macaddr('01:23:45:67:89:ab')
ans =

    1   35   69  103  137  171

Input Arguments

collapse all

The value is entered as a character vector or string scalar comprised of six colon-delimited fields of two-digit hexadecimal numbers.

Example: '01:23:45:67:89:ab'

Data Types: char | string

Introduced in R2014a