how to run demo file in matlab

3 Ansichten (letzte 30 Tage)
divya
divya am 12 Feb. 2016
Kommentiert: Walter Roberson am 13 Feb. 2016
i have typed the below command in command window
edit insulindemo
but i am getting the below error
Error using cd
Cannot CD to C:\Users\Rajan\AppData\Local\Temp (Name is nonexistent or not a directory).
Error in tempdir (line 30)
curr_dir = cd(tmp_dir);
Error in tempname (line 17)
dirname = tempdir;
Error in sbioloadproject>createMATFile (line 164)
tempfilename = [tempname '.mat'];
Error in sbioloadproject (line 83)
tempfilename = createMATFile(projfilename, 'simbiodata\d*.mat');
Error in insulindemo (line 85)
sbioloadproject('insulindemo', 'm1'
how to get out of these? help me plzz...
  1 Kommentar
divya
divya am 13 Feb. 2016
@image analyst pop up appears when i changed line 17...and says access is denied.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 12 Feb. 2016
At the MATLAB command prompt, command
if ~exist('C:\Users\Rajan\AppData', 'dir'); mkdir('C:\Users\Rajan\AppData'); end
if ~exist('C:\Users\Rajan\AppData\Local', 'dir'); mkdir('C:\Users\Rajan\AppData\Local'); end
if ~exist('C:\Users\Rajan\AppData\Local\Temp', 'dir'); mkdir('C:\Users\Rajan\AppData\Local\Temp'); end
After that you should be able to use the software.
  7 Kommentare
divya
divya am 13 Feb. 2016
kudossssss...solved ....just run matlab as administrator
Walter Roberson
Walter Roberson am 13 Feb. 2016
Could you show the output of
T=getenv('TEMP');
fprintf('|%s|\n', T);
T+0

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Search Path finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by