Effacer les filtres
Effacer les filtres

Convert Java Code to MATLAB Code (Equivalent)

4 vues (au cours des 30 derniers jours)
Paul Huter
Paul Huter le 28 Nov 2012
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.

Réponses (2)

Walter Roberson
Walter Roberson le 12 Avr 2019

Allahyar
Allahyar le 7 Nov 2022
int a = 0;
  1 commentaire
Walter Roberson
Walter Roberson le 7 Nov 2022
The MATLAB equivalent of that is
a = int32(0);

Connectez-vous pour commenter.

Catégories

En savoir plus sur Call Java from MATLAB dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by