Load libiomp5.so in glnxa64

4 views (last 30 days)
Shubham Shukla
Shubham Shukla on 24 Sep 2017
Answered: Steven Lord on 24 Sep 2017
Hi all,
I am currently facing an issue in matlab :Matrix dimensions must agree". Someone solved this earlier by applying a patch file 'libiomp5.so'. I recently re-installed matlab and lost all the configurations. I was wondering what is the use of glnxa64 folder and how to add a new .so file so that it loads in the matlab environment. I believe by doing 'matlab -n' i can check the shared libraries configured for my matlab installations.
Currently, i just copied the 'libiomp5.so' file in the sys/os/glnxa64 folder and was hoping the matlab configuration will load the same. Any information regarding the use of glnxa64 in matlab would also be helpful.
Machine configuration : ubuntu 14.04 LTS Intel Xeon CPU E5 -2623 v3 @ 3.00GHz x 16 64-bit Matlab R2014a

Answers (1)

Steven Lord
Steven Lord on 24 Sep 2017
In general, the fix for the error "Matrix dimensions must agree" is not to try to patch one of the libraries included with MATLAB, but to modify whatever operation you're trying to perform so that you're performing them on compatibly-sized arrays. For instance, if you had this:
A = rand(4) + magic(5);
the easiest solution would be one of the following lines:
A = rand(4) + magic(4);
A = rand(5) + magic(5);
If you show us what you were doing when you received that error we may be able to offer a suggestion for the easy solution.

Products

Community Treasure Hunt

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

Start Hunting!