Doc command/Help button don't work while "Current Folder" is in a mapped network drive

조회 수: 3 (최근 30일)
When my Current Folder (working directory) is in a mapped network drive (regardless of whether I've added the current folder to the MATLAB path), neither the "doc " command nor the Help button (in the Ribbon) work. Nothing happens at all. I discovered that the command
web("https:\\www.mathworks.com")
produces the following warning in that case:
Warning: MATLAB was unable to launch your System web browser:
The current directory is invalid.
> In web>displayWarningMessage (line 172)
In web (line 114)
Out of curiosity I changed my current folder to one on my local C: drive; when I did that, both the "web" command and the "doc" commands successfully opened the system Web browser (as they should).
Why would my current folder location make a difference? Is there anything I can do to fix it? Is this a bug?
  댓글 수: 10
Image Analyst
Image Analyst 2025년 7월 4일
Please attach this file "C:\Program Files\MATLAB\R2024b\toolbox\local\pathdef.m" so we can inspect it.

댓글을 달려면 로그인하십시오.

채택된 답변

Matthew McMahon
Matthew McMahon 2025년 7월 7일
Sorry - I see I left this thread unresolved. To wrap this up, I did reach out to MathWorks support and in going back and forth with them I discovered the underlying problem. For some reason, mapping the "Z" drive in Windows Explorer did not successfully map the drive in a way that was visible from the Windows Command Prompt. The workaround is to map the drives explicitly from the Command Prompt using the "net use" command. I set up a batch file to run at Windows login (using the Windows task scheduler utility) that does this mapping explicitly. Now MATLAB opens the help documentation no matter what folder I am working in.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Web Services에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by