HEADER_hostid = char(hostid);

Hi:
HEADER_hostid = char(hostid); was working in previous version of MATLAB and it is not recognized in recent version. What command can be used, within matlab macros, to identify the machine id? Best Regards
Mohammad Toorani

Answers (1)

Madhu Govindarajan
Madhu Govindarajan on 26 Oct 2015

1 Comment

After choosing the command that applies to your OS (getmac for windows), you can get the results in Matlab using
[status, result] = system('getmac');
You might need to parse desired data out of result.

Sign in to comment.

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 26 Oct 2015

Edited:

on 26 Oct 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!