Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

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

1 vue (au cours des 30 derniers jours)
Alba Díaz
Alba Díaz le 6 Mai 2019
Clôturé : MATLAB Answer Bot le 20 Août 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

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by