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