Affichage des articles dont le libellé est Windows 7. Afficher tous les articles
Affichage des articles dont le libellé est Windows 7. Afficher tous les articles

jeudi 27 septembre 2012

Setting-up Matlab R2010a compiler

Salamo3alaykom,

If you're using Matlab R2010a on Win7, you're probably getting an issue with the C++ compiler using mex command.
So to overcome this issue you have to get a compatible compiler installed, you can check all the compatible C++ compilers here.
I had the Visual Studio 2008 installed and thenin the matlab command window I run the msbuild command to set-up the C/ C++ compiler to be used with MATLAB.
So, you shoulget something like this:

>> mbuild -setup
Please choose your compiler for building standalone MATLAB applications:

Would you like mbuild to locate installed compilers [y]/n? y

Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\MATLAB\R2010a\sys\lcc
[2] Microsoft Visual C++ 2008 SP1 in C:\Program Files\Microsoft Visual Studio 9.0

[0] None

Compiler: 2

Please verify your choices:

Compiler: Microsoft Visual C++ 2008 SP1 
Location: C:\Program Files\Microsoft Visual Studio 9.0

Are these correct [y]/n? y

****************************************************************************
  Warning: Applications/components generated using Microsoft Visual Studio  
           2008 require that the Microsoft Visual Studio 2008 run-time      
           libraries be available on the computer used for deployment.      
           To redistribute your applications/components, be sure that the   
           deployment machine has these run-time libraries.                 
****************************************************************************

Trying to update options file: C:\Users\bouchratoune\AppData\Roaming\MathWorks\MATLAB\R2010a\compopts.bat
From template:              C:\MATLAB\R2010a\bin\win32\mbuildopts\msvc90compp.bat

Done . . . 


I hope that was helpful, and good luck with Matlab :D

 

dimanche 18 mars 2012

Using the 3GB Switch on Windows 7

I was running a routine under matlab and suddenly I got the infamous "Out of memory error".
So, as usual :p, I googled the problem and found that I needed to use the 3GB Switch on my not-so-fan-of-but must-use Win 7.
what I needed to do (as they say here) is : 
run the command "BCDEdit /set increaseuserva 3072"
Restart
et voilà :D

mardi 12 juillet 2011

Matlab 7.0.1 R14 SP1, Error Starting Desktop

I needed to use Matlab 7.0.1 for my thesis work, and according to my supervisor this version is more handy and stable than the other newer versions. So I installed it on my Windows 7 virtual machine, the installation went well, but when I tried to lunch it, I had this "Error Starting Desktop” message followed by a huge Java stack. 


As usual, I googled it and voila, it seems that it's all a compatibility problem. All I needed to do is set he compatibility mode to Windows 2000 or install the Win2000VersionLie Fix.  

Hope this helps :)