The name argument is a string with the name of the property. The
<value> argument can be of different types as indicated in
Table 2-2, where the two different syntaxes for assignment in the COMSOL API and the LiveLink
™ for MATLAB® are listed.
|
|
|
|
|
|
|
set("name", new String[]{" val1"," val2"})
|
set('name',{' val1',' val2'})
|
|
set("name",new String[][]{{"1","2"}, {"3","4"}})
|
set('name',{'1','2';'3','4'})
|
|
|
|
|
set("name",new int[]{1,2})
|
|
|
set("name",new int[][]{{1,2}, {3,4}})
|
|
|
|
|
|
set("name",new double[]{1.3,2.3})
|
|
|
set("name",new double[][]{{1.3,2.3}, {3.3,4.3}})
|
set('name',[1.3 2.3; 3.3 4.3])
|
|
|
|
|
set("name",new boolean[]{true,false})
|
|
|
set("name",new boolean[][] {{true, false},{false, false}})
|
set('name', [true,false;false,false])
|
For matrix-type properties, set(name,
<string>) splits the string at spaces and commas.
The following methods using set are deprecated in version 5.1 (use
setIndex() instead):
The following methods using set are deprecated in version 5.0: