Random Notes from My Research Life @ IISc

April 30, 2012

Installing latex extras

Filed under: Latex — Sooraj K. Ambat @ 14:47
Tags: , , , ,

\LaTeX may often require packeges like multirow.

many packges are not included by default in texlive.

To install the extra packages use the following command

sudo apt-get install texlive-latex-extra

April 2, 2012

Mex Error in Matlab

Filed under: Linux,Matlab — Sooraj K. Ambat @ 01:34
Tags: , , ,

While using mex compiler in Matlab 2010+ versions, error occurs due to the conflict between tha shared libaries used by Matlab and the OS (mine is Ubuntu 11.10).

One of the solutions is to remove the Matlab shared libraries and use show the system shared libraries to Matlab.

This can be done by

cd $MATLAB
cd sys/os/glnx86
mkdir old
mv libstdc++.* libg2c.* libgcc_s* old

Then, update the library path

export LD_LIBRARY_PATH=/usr/lib32:/usr/lib:$LD_LIBRARY_PATH
source: http://www.mathworks.com/matlabcentral/answers/8079-how-to-get-working-matlab-coder-in-linux

April 1, 2012

Speeding Up Matlab

Filed under: Linux,Matlab,ResearchLife — Sooraj K. Ambat @ 22:40
Tags: , , ,

The performance of the linear algebra operations in any machine ultimately depend on the efficient BLAS implementation available on the machine and Matlab is not an exception!

By default, Matlab uses a version of Intel MKL which they upgrade with every release.

But usually the default option will not be optimal for the particular machine.

Luckily, Linux version of Intel MKL is free for non-commercial use.

We may download and install it to improve the performance.

I could install it on  my machine today. But linking Intel MKL with Matlab is not completed yet.

I’ll update it once I complete the job.

Create a free website or blog at WordPress.com.