Live scripts stored in MATLAB Drive are assumed to be located in Temp folder
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Diaa
el 12 de Nov. de 2019
Respondida: Walter Roberson
el 12 de Nov. de 2019
I have MATLAB R2019a on Win10 and MATLAB Drive Connector.
Some live scripts are stored in the local MATLAB Drive folder. However, running
fileparts(which(mfilename))
results in
'C:\Users\Diaa\AppData\Local\Temp\Editor'
instead of the expected output
'C:\Users\Diaa\MATLAB Drive'
So, how to fix this in order to be able to add the directories of the running live script folder and its subfolders to the search path using either
addpath(genpath(pwd))
or
folder=fileparts(which(mfilename)); addpath(genpath(folder));
?
0 comentarios
Respuesta aceptada
Walter Roberson
el 12 de Nov. de 2019
You cannot do that. LiveScripts are not .m files
0 comentarios
Más respuestas (0)
Comunidades de usuarios
Más respuestas en Distance Learning Community
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!