Groovy programming in MATLAB

2 ビュー (過去 30 日間)
Malcolm Lidierth
Malcolm Lidierth 2012 年 7 月 1 日
Groovy ( http://groovy.codehaus.org/ ) is a modern JVM-based programming language that can be used easily within MATLAB if you add groovy-all.jar to the MATLAB javaclasspath.
As a Python-like, dynamically-typed language, it’s likely to be attractive to the some MATLAB users. http://groovy.codehaus.org/Cookbook+Examples has examples of using Groovy with databases, XML, URLs and more.
Groovy “closures” can be assigned to MATLAB variables and work much as MATLAB anonymous functions. You can also explore Groovy on-the-fly by invoking a groovy console session in MATLAB (works on Windows and from R2012a on Mac/Linux):
>> console=groovy.ui.Console();
>> console.run();
A search for “groovy” on Answers and the Newsgroup gives no hits – hence this “question” to draw more attention to it.
  7 件のコメント
Malcolm Lidierth
Malcolm Lidierth 2012 年 7 月 3 日
@Yair - no problem.
Kye Taylor
Kye Taylor 2012 年 7 月 3 日
With a name like groovy, I feel compelled to learn it.

サインインしてコメントする。

回答 (1 件)

Yair Altman
Yair Altman 2012 年 7 月 4 日
For anyone's information, I just posted the following article by Malcolm about using Groovy in Matlab: http://UndocumentedMatlab.com/blog/using-groovy-in-matlab/

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by