I am new to MATLAB programming and I ran into some problems:
I want to call the libriary function dSPACE MLIB. According to their samples, an argument requires an array of strings:
variables = {'Model Root/Spring-Mass-Damper System/Out1';...
'Model Root/Signal\nGenerator/Out1'};
libFunction(variables);
These variables are passed to the function. My problem is this: I have an external application in which the user can select from an arbitrary number of lines to be passed to the matlab function. Since the front end is written in Java, the input type is java.lang.String []. How can I convert an array of java strings to something the same as the sample variable above (I think it is an array of cells of an array of cells or sth).
Thanks in advance!
source
share