Calling Java from Matlab is very simple. The documentation is on the Mathworks web site at http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f44062.html. Basically you add your jars to Matlab's classpath using the 'javaaddpath' function. Then you can instantiate classes and invoke methods on your objects pretty much the same way as Java. There's a few deviations from straight Java (for example you don't use the 'new' keyword to instantiate objects, i.e. to instantiate a Java string in matlab: s= java.lang.String('foo');
I've never tried to call Clojure code rom Java, although there's an example at http://markmail.org/message/tx23zaxf77b6widh that might get you going. Good Luck On Tue, Feb 23, 2010 at 13:57, Ahmed Fasih <wuzzyv...@gmail.com> wrote: > Hi all, I'm seeking to take advantage of the Matlab-Java bridge to use > some logging code written in Clojure. A complicated Matlab function > will periodically send the Clojure app some data to be logged and > displayed. > > I write to ask if there are any public examples of using the Matlab- > JVM bridge to get to Clojure. (I'm a total noob to Java and the JVM.) > > Thanks for your help, and thanks for this great new Lisp! > Ahmed > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Brian Schlining bschlin...@gmail.com -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en