Thread: Setting sac with Matlab 2013a

Started: 2014-01-09 22:11:00
Last activity: 2014-01-14 19:16:42
Topics: SAC Help
Reza Mansouri
2014-01-09 22:11:00
Dear all

I have compiled sac with matlab libraries on my laptop. as it was mentioned
in sac files, I set the LD_LIBRARY_PATH to point the folder that contains
libeng.so. I read a sac file into sac but when I use mat I got this error

SAC> mat
Error: /usr/local/matlab/bin/glnxa64/libeng.so: undefined symbol:
engPutArray
ERROR 8003: Cannot link to a MATLAB function: engPutArray
ERROR 8003: Cannot link to a MATLAB function: engPutArray

does anybody knows how to solve this problem. I think some functions in
matlab have been changed a long time ago!!!? Does it mean that sac
developers do not believe in developing matlab files in sac/src/mat
directory? or ...

  • Brian Savage
    2014-01-14 19:16:42
    Dear Reza Mansouri,

    The Matlab support was added more than a decade ago and has limited functionality. Unless there is need from the community for this interoperability I am tempted to deprecate and remove it as it is difficult to maintain.

    ** If you would like to keep this interoperability around and help to maintain it, I need to know. **

    If you would like to use SAC files directly in Matlab, there are a set of contributed read and write routines in the sac/utils directory.

    Brian Savage
    savage<at>uri.edu

    On Jan 9, 2014, at 5:41 AM, Reza Mansouri wrote:

    Dear all

    I have compiled sac with matlab libraries on my laptop. as it was mentioned in sac files, I set the LD_LIBRARY_PATH to point the folder that contains libeng.so. I read a sac file into sac but when I use mat I got this error

    SAC> mat
    Error: /usr/local/matlab/bin/glnxa64/libeng.so: undefined symbol: engPutArray
    ERROR 8003: Cannot link to a MATLAB function: engPutArray
    ERROR 8003: Cannot link to a MATLAB function: engPutArray

    does anybody knows how to solve this problem. I think some functions in matlab have been changed a long time ago!!!? Does it mean that sac developers do not believe in developing matlab files in sac/src/mat directory? or ...
    _______________________________________________
    sac-help mailing list
    sac-help<at>iris.washington.edu
    http://www.iris.washington.edu/mailman/listinfo/sac-help



13:35:51 v.22510d55