Live scripts stored in MATLAB Drive are assumed to be located in Temp folder
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
추가 답변 (0개)
커뮤니티
더 많은 답변 보기: 원격 교육 커뮤니티
참고 항목
카테고리
Help Center 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!