Main Content

Use MATLAB Online to Access Files in Microsoft OneDrive

You can use MATLAB® Online™ to connect to your Microsoft® OneDrive account and access its contents. When you connect to your OneDrive account, you can view and edit your stored files and save new files to your account directly from the MATLAB Online desktop environment.

Connect to OneDrive Account and Access Files

To access your OneDrive files in MATLAB Online, connect to your OneDrive account using the Connections panel:

  1. To open the Connections panel, in the sidebar on the left side of the MATLAB Online desktop, click the Open more panels button (three-dot icon) and select Connections.

  2. In the Available Connections section, click the Add button next to OneDrive.

  3. Sign in using your Microsoft account credentials.

  4. If prompted, grant permission for MATLAB to access the files in your OneDrive account on your behalf.

    Under certain circumstances, an administrator might need to grant permission to connect to your OneDrive account in MATLAB Online.

You can add only one OneDrive account at any given time. To use different accounts, remove the existing OneDrive connection and then add a OneDrive connection using the new account.

Connections panel with two sections: Available Connections and My Connections. The Available Connections section shows OneDrive with an Add button. The My Connections section shows MATLAB Drive.

Once you connect to your OneDrive account, your OneDrive My files folder becomes the current folder in MATLAB Online and the Files panel displays the list of files and folders stored in that folder. To open the Files panel if it is not visible, click the Files icon in the sidebar.

Note

  • Large files (> 1 GB), can take several seconds to open in MATLAB Online.

  • MATLAB Online does not show shared OneDrive folders or shortcuts to files and folders stored in SharePoint®.

To view the files and folders for a different connection, in the My Connections section of the Connections panel, right-click the connection and select Navigate to Connection Name. For example, to view the files and folders in your MATLAB Drive™ folder, right-click MATLAB Drive and select Navigate to MATLAB Drive.

Alternatively, in the Current Folder toolbar, click the drop-down arrow to the left of the current folder name and select from the available connections.

Current Folder toolbar with the drop-down arrow menu expanded to show the available connection names

Disconnect OneDrive Account from MATLAB Online

To disconnect your OneDrive account from MATLAB Online, in the My Connections section of the Connections panel, right-click OneDrive and select Remove.

When you disconnect your OneDrive account, you can no longer access your OneDrive files from MATLAB Online. Additionally, you might need to manually revoke the permissions that you previously granted through MATLAB Online. To manually revoke the permissions, use one of these methods:

  • OneDrive — Go to https://account.live.com/consent/Manage. Under the MATLAB app, click the Edit link. Then, click the Remove these permissions button.

  • OneDrive for work or school — Go to https://myapps.microsoft.com. On the MATLAB app block, click the More button and select Manage your application. Then, click the Revoke consent button.

Granting MATLAB Permission to Your OneDrive Account

When you connect to OneDrive from MATLAB Online, you are granting MATLAB permission to access the files in your OneDrive account on your behalf. The permissions MATLAB requests are delegated permissions, which allow MATLAB to act on behalf of the user currently signed in to MATLAB Online. For more information about the requested delegated permissions, see https://learn.microsoft.com/graph/permissions-reference#files-permissions.

Note

Security Considerations: You can choose to restrict user consent for the OneDrive accounts in your organization. To learn more about managing consent to applications and evaluating consent requests, see https://learn.microsoft.com/azure/active-directory/manage-apps/manage-consent-requests.

Related Topics