Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

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

1 visualización (últimos 30 días)
Alba Díaz
Alba Díaz el 6 de Mayo de 2019
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (0)

La pregunta está cerrada.

Community Treasure Hunt

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

Start Hunting!

Translated by