フィルターのクリア

Accessing files from my Matlab Drive in a script

12 ビュー (過去 30 日間)
Christian Schaaf
Christian Schaaf 2020 年 8 月 17 日
回答済み: Gareth 2021 年 3 月 11 日
Hello everybody,
I´m looking for a solution to access .m-files, that I saved in my Matlab Drive linked to my account. I want to load these files into my workspace on my desktop computer. Is there a command, that addresses files in my Matlab Drive?
I appreciate your support. Thanks in advance.

採用された回答

Gareth
Gareth 2020 年 8 月 17 日
Hi Christian,
While there is not currently a command to access your MATLAB Drive content programatically, if you have installed MATLAB Drive Connector then you can use the MATLAB Drive button to cd into your MATLAB Drive folder inside of MATLAB. You can then use those files as you would any other local files and load them into your workspace etc.
I hope that helps,
Best wishes,
Gareth
  3 件のコメント
Gareth
Gareth 2020 年 8 月 17 日
Hi Christian,
We do listen to customer feedback and this is something that has been requested previously - if/when I can provide an update on this functionality I will reply to this Answer to let you know.
Thanks and best wishes,
Gareth.
Christian Schaaf
Christian Schaaf 2020 年 8 月 17 日
alright, thank you for the excellent support!

サインインしてコメントする。

その他の回答 (1 件)

Gareth
Gareth 2021 年 3 月 11 日
Hi Christian, MATLAB R2021a has now been released and we've added a new matlabdrive function which when combined with fullfile can be used to construct a path to files in your MATLAB Drive that will work in both MATLAB Online and on the desktop.
For example, a script could now call something like the following, and it should work equally well so long as MATLAB Drive is available on that computer:
A = imread(fullfile(matlabdrive, 'Images', 'BinaryImages', 'binary1.bmp'));
Hopefully this helps towards the usecase that you were inquiring about!
Best wishes,
Gareth

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by