How can I obtain a list of the drives available in MATLAB on the Windows machine?
조회 수: 11 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2009년 6월 27일
편집: MathWorks Support Team
2023년 5월 31일
I am using MATLAB on Windows. I would like to get a list of the drives (A:,C:,D:,E:, etc.) that are available on my computer.
채택된 답변
MathWorks Support Team
2023년 5월 31일
편집: MathWorks Support Team
2023년 5월 31일
This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
The ability to list the drives available on a Windows machine is not available in MATLAB.
To work around this issue, the GETDRIVES function is available for download from the MATLAB Central website and has this functionality. The file is available here:
Note that MathWorks does not guarantee or warrant the use or content of MATLAB Central submissions. Any questions, issues, or complaints should be directed to the contributing author.
댓글 수: 0
추가 답변 (1개)
Eivind Hennestad
2022년 11월 25일
Here is an alternative that lists all the available drives and provides some additional information in a table:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Install Products에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!