Info
此问题已关闭。 请重新打开它进行编辑或回答。
how can I introduce a string variable in an exported java model?
1 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!