Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

how can I introduce a string variable in an exported java model?

1 Ansicht (letzte 30 Tage)
Alba Díaz
Alba Díaz am 6 Mai 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Who it may correspond,
I have exported my model as a java library and one of my matlab inputs is the path, where the files should be find. Which kind of input java variable should I define to make it work?
If my variable was a number I will do this:
MWNumericArray FM_DC = null;
FM_DC = new MWNumericArray(1.4,MWClassID.DOUBLE);
result = modeloMatlab.myModel(1, FM_DC);
I'm trying to fill the blanks here:
_______1_______ path = '';
MWNumericArray FM_DC = null;
path = new _______1_______('C:\MyFiles',MWClassID.____2____)
FM_DC = new MWNumericArray(1.4,MWClassID.DOUBLE);
result = modeloMatlab.myModel(1, path, FM_DC);
Thanks in advance

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by