フィルターのクリア

Convert Java Code to MATLAB Code (Equivalent)

1 回表示 (過去 30 日間)
Paul Huter
Paul Huter 2012 年 11 月 28 日
コメント済み: Walter Roberson 2022 年 11 月 7 日
I have an example algorithm written in Java (and C and Python) that I would really like to get into MATLAB. I tried with the C, but I'm getting issues with some variables in the C-code being pointers and then becoming arrays (not so sure about how well the C-code is written...), and the C-code also doesn't do exactly what I need it to do, same with the Python. The description on the Java indicates it will be a better solution - but I don't know Java all that well, and so I am not sure how to convert to MATLAB.
A big help would be if anyone has a working MATLAB Boyer-Moore algorithm.

回答 (2 件)

Walter Roberson
Walter Roberson 2019 年 4 月 12 日

Allahyar
Allahyar 2022 年 11 月 7 日
int a = 0;
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 11 月 7 日
The MATLAB equivalent of that is
a = int32(0);

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

カテゴリ

Help Center および File ExchangeCall Java from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by