Accessing files from my Matlab Drive in a script
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Christian Schaaf
el 17 de Ag. de 2020
Respondida: Gareth
el 11 de Mzo. de 2021
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.
0 comentarios
Respuesta aceptada
Gareth
el 17 de Ag. de 2020
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 comentarios
Gareth
el 17 de Ag. de 2020
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.
Más respuestas (1)
Gareth
el 11 de Mzo. de 2021
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
0 comentarios
Ver también
Categorías
Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!