From: Thomas on 6 Feb 2010 12:06 Hello all, I get a problem with MEX files while running WaveLab (850) with Matlab 7.8.0 (Mac student version). Each time I start Matlab, Wavelab try to recompile the MEX files and each time, it "succeeds" without any error (just some warnings : array 'plhs' assumed to have one element AND array 'prhs' assumed to have one element). (I have added some debug code in the "installMEX.m" script to check the global process and all seems fine) But then if I try a "which" test, I notice that I am still using the .m files (even if the .mexmaci are in the corresponding directories). It looks like Matlab does not see the .mexmaci ... I have checked all permissions but I do not see any problem. Thanks a lot in advance. I really need MEX-files to speed up my experimentations... I am using Mac Os 10.6.2 on a MacBookPro 15" (intel).
From: James Tursa on 6 Feb 2010 12:40 "Thomas " <thomas.ricatte(a)centraliens.net> wrote in message <hkk7ht$iku$1(a)fred.mathworks.com>... > Hello all, > > I get a problem with MEX files while running WaveLab (850) with Matlab 7.8.0 (Mac student version). > Each time I start Matlab, Wavelab try to recompile the MEX files and each time, it "succeeds" without any error (just some warnings : array 'plhs' assumed to have one element AND array 'prhs' assumed to have one element). > (I have added some debug code in the "installMEX.m" script to check the global process and all seems fine) > > But then if I try a "which" test, I notice that I am still using the .m files (even if the .mexmaci are in the corresponding directories). It looks like Matlab does not see the .mexmaci ... > I have checked all permissions but I do not see any problem. > > Thanks a lot in advance. I really need MEX-files to speed up my experimentations... > > I am using Mac Os 10.6.2 on a MacBookPro 15" (intel). What do you mean by "corresponding directories"? MATLAB will run the first match it finds on the path, so if it finds the m-file first it will run it, even if a same-named mex file is on the path but lower down. Try putting the m-file and the mex-file in the same directory. James Tursa
From: Thomas on 6 Feb 2010 13:05 "James Tursa" <aclassyguy_with_a_k_not_a_c(a)hotmail.com> wrote in message <hkk9i5$hvu$1(a)fred.mathworks.com>... > What do you mean by "corresponding directories"? MATLAB will run the first match it finds on the path, so if it finds the m-file first it will run it, even if a same-named mex file is on the path but lower down. Try putting the m-file and the mex-file in the same directory. > > James Tursa Thanks for your answer. By "corresponding directories", I meant "for each mex-file, the same directory as the corresponding m-file". I also try to do the following operations : 1- Remove temporarily a m-file in order to force matlab to use the mex-file 2- Restart matlab When I do that, the which command still returns me the former path of the m-file (cache ?). If I try to use the file (of course without the .m extension), I get : ??? Previously accessible file .... is not inacessible. Is there a way to flush this cache ? (If I try to run manually the mexmaci file by right-clicking, it seems to work...)
From: Thomas on 6 Feb 2010 13:29 "Thomas " <thomas.ricatte(a)centraliens.net> wrote in message > [...] > Is there a way to flush this cache ? > Ok I've directly flushed the cache from matlab's gui and it seems to work. Thansk for your help. -- Thomas
|
Pages: 1 Prev: Print to file with variable filename Next: Fourier Series Coefficients |