i cannot make mex setup command to work on my matla2012a?

hello all, i am trying to use mex setup command on matlab 2012a but it does not work on my laptop, and i get the error "Previously accessible file "C:\Program Files\MATLAB\R2012a\toolbox\matlab\iofun\tempname.m" is now inaccessible." any ideas??

5 个评论

bena - what happens if you type the following in the Command Window
tempname
and/or
which tempname -all
As tempname is a built-in function that generates a unique name for a temporary file, both of the above commands should return a unique file name and the path to the tempname.m respectively.
the first one doesnt work while the second one "which tempname -all" returns "C:\ProgramFiles\MATLAB\R2012a\toolbox\matlab\iofun\tempname.m" i have windows 8 on my laptop and have installed SDK7.1, visual studo 2010. but still getting the same error again and again.
What error do you get when you run tempname?
>> tempname Previously accessible file "C:\Program Files\MATLAB\R2012a\toolbox\matlab\iofun\tempname.m" is now inaccessible. may be that's because maatlab is not confiigured properly on my laptop, I have tried everything but its not working. perhaps re installation of matlab can help??
If you type
open tempname
does the file open in the editor?
And, what does
path
return? If there is a list, do you see the directory C:\Program Files\MATLAB\R2012a\toolbox\matlab\ iofun?

回答(0 个)

此问题已关闭。

标签

尚未输入任何标签。

提问:

2014-10-29

关闭:

2021-8-20

Community Treasure Hunt

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

Start Hunting!

Translated by