Running gnuplot from Matlab under Linux

I'm trying to run gnuplot directly from Matlab (works on Debian Linux), but I get the following error:

>> unix('gnuplot defaults_loan10.p');
gnuplot: /usr/local/MATLAB/R2011b/sys/os/glnx86/ version `GLIBCXX_3.4.11' not found (required by /usr/lib/i386-linux-gnu/


Running gnuplot from the console works fine. How can I fix this?


source to share

1 answer

This is because Matlab uses its own LD_LIBRARY_PATH

try using the command setenv

to get this environment variable back as you like.

For example:



You can check the contents of LD_LIBRARY_PATH before and after by running:





All Articles