在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):juliamatlab/julia-matlab-shuttle开源软件地址(OpenSource Url):https://github.com/juliamatlab/julia-matlab-shuttle开源编程语言(OpenSource Language):MATLAB 84.6%开源软件介绍(OpenSource Introduction):julia-matlabThis is a Matlab interface for calling Julia, an open-source language providing many features of a Matlab-like environment but offering many of the performance benefits of C. The primary purpose of this Matlab-Julia connector is present a way to enhance performance in Matlab without the need for writing MEX files. NEWSSince the author doesn't use this himself, this repository has not been maintained. If you're interested in getting it working, you'll need to start from a version of ZMQ that existed at the time this repository worked: https://github.com/timholy/ZMQancient.jl It's also very likely that changes in julia will require additional updates. If you're willing to put the work into it, you are free to take "ownership" (this is released under the MIT license). Installation and configurationFirst, you need ZeroMQ installed on your machine. ZeroMQ is an efficient cross-platform library (available for Windows, Mac, and Linux) used for the communicaton between Matlab and Julia. It is assumed that this is installed as a system-wide library. On (K)Ubuntu this can be installed simply using "apt-get install libzmq1". At present, version 3 of ZeroMQ seems to be too buggy to use, so you should make sure you're installing from the stable (2.x) branch. Second, from within Matlab navigate to the "mex" directory of this
repository and execute the Finally, configure your communications with Julia by running the
Using julia-matlabFor a local connection (which is the recommended way to start), you
can launch Julia from within Matlab using the For a remote connection, you'll need to launch Julia on the remote
machine, and then run the julia> load("zmq_server_julia.jl")
julia> run_server("tcp://*:5556") ErrorsErrors are typically reported back to the Matlab client. However, they are also mirrored on the command line of the Julia server. For that reason, if you have trouble you may prefer to launch Julia by hand rather than letting Matlab launch it for you. If communications between Matlab and Julia get interrupted, an easy fix is often to kill the Julia instance and restart. LimitationsIt would be nice to allow CTRL-C to gracefully interrupt and recover the Julia communication. However, at present this is not implemented. The most important part of the communication is the serializer (in
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论