How to identify two different MACI64 computers
显示 更早的评论
I use an iMac desktop and a Powerbook Pro for program development with a VPN connection to my university. They have slightly different data structures and I would like to be able to identify which one I am using by examining the output from name=computertype as I used to in earlier versions of Matlab. Now both computers return 'MACI64'. getenv is not useful as it returns the address of the current VPN connection. Is there a way to determine when I am using each computer? This is of great help in setting data and results paths.
Thanks,
Andy
2 个评论
Rik
2022-8-16
You need to identify something that is different between the two. You could check the existence of some specific folder structure, perhaps?
Walter Roberson
2022-8-16
hostname ? Amount of memory?
... I think checking for the two data structure directories is probably the most robust.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Environment and Settings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!