Hello
I'm working with the LiveLink to Matlab and Comsol 4.4. Now it seems that either there are some restrictions in this LiveLink or I'm missing something.
First I defined global variables in Matlab, that I call later on in Matlab functions. These Matlab functions are used in the Comsol model. This does not work in Comsol. I read in a discussion that Comsol does have problems with global variables. Is it really not possible to work with them?
Second it seems that Comsol can not read Matlab functions that contain if-else statements. Is that true?
At the moment it seems the only Matlab functions I can call in Comsol are simple polynoms.
Does anybody know the correct approach to call Matlab functions in Comsol or if there are really some restrictions? Is the Matlab environment used by the LiveLink not the usual Matlab environment?
Thank you for taking time and for your help.
Anina
I'm working with the LiveLink to Matlab and Comsol 4.4. Now it seems that either there are some restrictions in this LiveLink or I'm missing something.
First I defined global variables in Matlab, that I call later on in Matlab functions. These Matlab functions are used in the Comsol model. This does not work in Comsol. I read in a discussion that Comsol does have problems with global variables. Is it really not possible to work with them?
Second it seems that Comsol can not read Matlab functions that contain if-else statements. Is that true?
At the moment it seems the only Matlab functions I can call in Comsol are simple polynoms.
Does anybody know the correct approach to call Matlab functions in Comsol or if there are really some restrictions? Is the Matlab environment used by the LiveLink not the usual Matlab environment?
Thank you for taking time and for your help.
Anina