Hello Matthias Ernst
Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.
If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
04.04.2014, 04:23 GMT-4
Hello Matthias,
I am having exactly the same problem, but with version 4.3a in Windows.
What is more exasperating is that at the same time, I open the example model "vacuum_flask_llmatlab.mph", I define the functions in Matlab as the pdf file expains and it works fine.
When I define a Matlab function in the model I'm working on and define the function in Matlab exactly in the same way I did with the example, I get the error message you are reporting.
Have you had any luck by now?
Hello Matthias,
I am having exactly the same problem, but with version 4.3a in Windows.
What is more exasperating is that at the same time, I open the example model "vacuum_flask_llmatlab.mph", I define the functions in Matlab as the pdf file expains and it works fine.
When I define a Matlab function in the model I'm working on and define the function in Matlab exactly in the same way I did with the example, I get the error message you are reporting.
Have you had any luck by now?
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
04.04.2014, 07:14 GMT-4
Hello Jesus,
now it works. It is very important, that you have saved your Comsol-model in the same path as your Matlab-function, befor you import the Matlab-function to your Comsol-model.
Hello Jesus,
now it works. It is very important, that you have saved your Comsol-model in the same path as your Matlab-function, befor you import the Matlab-function to your Comsol-model.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
07.04.2014, 03:58 GMT-4
Hi Matthias,
Thank you for answering so fast.
I don't know why, but suddenly it started working. I am really not aware of having made any change for this to happen, but it works now.
It makes sense what you say. It is easier to put the files in the same path; however, it seems that this is not really necessary. What is necessary is that Matlab can find your file's function, and this can also be achieved by including in Matlab the path where you put the Matlab files that you work on, no matter where your Comsol file is located. This path can either be Matlab's default or any other you use.
Hi Matthias,
Thank you for answering so fast.
I don't know why, but suddenly it started working. I am really not aware of having made any change for this to happen, but it works now.
It makes sense what you say. It is easier to put the files in the same path; however, it seems that this is not really necessary. What is necessary is that Matlab can find your file's function, and this can also be achieved by including in Matlab the path where you put the Matlab files that you work on, no matter where your Comsol file is located. This path can either be Matlab's default or any other you use.