Documentation

macaddr

Convert character vector-based MAC address to vector-based address

Syntax

macaddr(MAC_address)

Description

example

macaddr(MAC_address) converts a character vector-based 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 comprised of six colon-delimited fields of two-digit hexadecimal numbers.

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

Data Types: char

Introduced in R2014a

Was this topic helpful?