ParallelC

版本 1.2.0.0 (1.8 KB) 作者: Geoffrey
This file allows you to access a virtual Parallels drive while running Matlab on a MAC OSX.
355.0 次下载
更新时间 2009/11/18

查看许可证

I run Matlab on an Intel MACPro through X11 in OSC and through a vista virtual machine using Parallels. This program simplifies directory switching so I can easily access the virtual drives created by Parallels.

Parallels creates a directory in '/tmp' that provides access to any virtual drives. This directory is always numeric and changes whenever parallels is restarted. Thus, the script must be able to search for the proper directory. This code supplies two simple methods for achieving that goal.

function []=ParallelC()
R=dir('/tmp'); % Get directory names
for n=1:length(R), % Scan through directory names
R1=exist(['/tmp/', R(n).name, '/C/']); % See if the directory exists.
if R1==7, % Exist returns 7 if A is a directory
eval(['cd /tmp/', R(n).name, '/C/']); % Go to the appropriate directory
break, end % Program is finished
end

引用格式

Geoffrey (2024). ParallelC (https://www.mathworks.com/matlabcentral/fileexchange/25832-parallelc), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Search Path 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Put code into description.

1.1.0.0

Changed the file to a function so it relies only on local variables.

1.0.0.0