How can I install MATLAB on the D drive?

136 ビュー (過去 30 日間)
Takehiro Tanaka
Takehiro Tanaka 2017 年 2 月 13 日
回答済み: Maria Ghani 2022 年 6 月 1 日
I specified the installation folder in the D drive but the computer automatically install MATLAB in the downloads folder as default name "MathWorks" in C DRIVE even though I manually specified the destination in D drive. All other program are I can install on D drive but it seems I cannot install MATLAB on the D drive. So is it possible to install MATLAB on D drive?

採用された回答

Takehiro Tanaka
Takehiro Tanaka 2017 年 2 月 15 日
編集済み: Walter Roberson 2017 年 2 月 15 日
I actually understood how to solve this problem. In fact, we have to use a command prompt to change the installation directory. the procedure is the following:
1. Open the command prompt (You can find it by typing 'cmd' from the start menu).
2. Type the command 'd:' to change the current directory to D drive
3. Type the command 'cd D:\the address of the folder needed to install matlab products' to go to specific directory.
4. Type the command 'setup -downloadFolder D:\the address of the folder where you want to install' to setup the default destination to install.
Note that the way you type the address of folder is you can easily find on google.
  9 件のコメント
Walter Roberson
Walter Roberson 2021 年 3 月 6 日
I am not sure where the - before setup came from? just setup not -setup
Kahiel Coke
Kahiel Coke 2021 年 9 月 7 日
when I type set up in my windows computer it says the command is not recognized, what am I doing wrong ?

サインインしてコメントする。

その他の回答 (3 件)

Steven Lord
Steven Lord 2017 年 2 月 13 日
If you told the Installer to install in a folder on the D drive, it should be installing in the specified folder. As part of the installation process it will download files needed by the installation process to a temporary directory, and that directory may or may not be on the D drive depending on how your machine is configured. Those files are used by the installation process but they are not the actual installation.
From the documentation (specifically item 1 in step 1):
"When you select an installer on the website, you receive the files that the installer needs in order to run on your selected platform, not the product files. Run the installer to select products that you want to install on the computer where you are logged in. The installer downloads the products that it needs from MathWorks, if necessary."
I think this Answer describing how to change where the files are downloaded is still up-to-date.
  5 件のコメント
Mohammed Suhail
Mohammed Suhail 2020 年 4 月 28 日
Same issue here if anybody has a solution please do post
Edgar Ossiel Pérez Torres
Edgar Ossiel Pérez Torres 2020 年 6 月 4 日
What I did was to delete some files from the temp file, in that way I was able to get enough space. Furthermore, I selected just some adds, Matlab was properly installed, and then I added the other ones as the downloaded files are just temporal on the C drive, and I of course installed on the D dirve. In other words, once you have installed Matlab you will recover your initial space in the C drive, and you can download more Matlab adds.

サインインしてコメントする。


Nehemiah Mork
Nehemiah Mork 2020 年 9 月 28 日
If anyone is getting a location error when trying to open matlab (version 2020b) when using the command window do this.
D:\....path...\setup.exe -downloadFolder D:\....location to download
worked for me to download but then when I would try and open Matlab it would say matlab is not where it should be and would give me a location error and would not open. What I ended up having to do is go into windows control panel and change where my temporary files were stored and change them from a C:\ drive file to a D:\ drive file so they were being saved in the same driver as where I was installing matlab so I did not get that location error. If anyone is also getting that error watch this youtube video on how to change your temporary save location from C:\ drive to D:\ drive.
  2 件のコメント
Amod Shiledar
Amod Shiledar 2021 年 1 月 4 日
In the video, it is shown that you have to search the .exe file name in other drives, and then create its shortcut. Where did you find it? In D drive or C drive. I can't find it in either of them.
Niha Faisal
Niha Faisal 2021 年 6 月 25 日
Thankyou so much for this!! I thought I was downloading it wrong, I re-installed it 3 times :'(

サインインしてコメントする。


Maria Ghani
Maria Ghani 2022 年 6 月 1 日
anyone can help me to solve this error how i can add short path. E1 is my code file when i run my data i face this error
thanks in advance

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by