User`s guide
macaddr
Purpose Convert string-based MAC address to vector-based one
Syntax MATLAB command line
macaddr('MAC address')
Argument
'MAC address'
String-based MAC address to be co nverted.
Description The macaddr function converts a string-based MAC address to a
vector-based MAC address. The string-based MAC address should be a
string com prised of six colo n -d el im i ted fields of two-digit hexadecimal
numbers.
Example macaddr('01:23:45:67:89:ab')
ans =
1 35 69 103 13 7 171
See Also “Model-Based Ethernet Communications Support” in the xPC Target
I/O Reference
18-85