Root folder of MATLAB Drive
returns the path to the
folder that contains the content of your MATLAB®
M = matlabdrive
You can run
matlabdrive from your desktop or from other
MATLAB environments such as MATLAB
Online™. On desktop systems, you must have MATLAB
Drive Connector installed. If MATLAB is unable to find the MATLAB
matlabdrive returns an error.
Get MATLAB Drive Root Folder Location
Get the location of your MATLAB Drive folder on a desktop system with MATLAB Drive Connector installed.
path = matlabdrive
path = 'C:\Users\username\MATLAB Drive'
Get Path to File in MATLAB Drive
If you know where a file is within your MATLAB
Drive folder, you can also use
matlabdrive to get
the full path to the file.
path = fullfile(matlabdrive,'myfolder','myfunction.m')
path = 'C:\Users\username\MATLAB Drive\myfolder\myfunction.m'
Set Current Folder to MATLAB Drive
Set the current folder to your MATLAB Drive folder.
On a desktop system, MATLAB Drive Connector must be running and properly configured. Otherwise,
matlabdrivereturns an error. For more information, see Install MATLAB Drive Connector (MATLAB Drive) and Start and Stop MATLAB Drive Connector (MATLAB Drive).
On a MATLAB Parallel Server™ cluster provisioned through Cloud Center, the cluster must be configured as a personal cluster with a dedicated head node. Otherwise,
matlabdrivereturns an error.