Validate matlab code to be syntactically correct

1 回表示 (過去 30 日間)
Raphael
Raphael 2014 年 1 月 16 日
回答済み: Walter Roberson 2014 年 1 月 17 日
Hi everyone,
I am working on an application in Java which analyzes matlab code.
The first thing I want to accomplish is validating a matlab code file for being syntactically correct.
I have considered trying to compile the code in matlab to C code to see if that works without error, but is there are more elegant way maybe?
Regards, R

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 1 月 17 日
Some people use depfun() for this purpose. Others use mlint, but I see a note there that now checkcode is recommended.

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by