Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Integration of MATLAB functions with more than one variable
Posted 15 févr. 2013, 08:43 UTC−5 Interfacing Version 4.3a 3 Replies
Please login with a confirmed email address before reporting spam
Hi,
I want to realize an integration in COMSOL 4.3a using self-written MATLAB functions.
If I use a test function with one input and one output argument everything works as expected (plotting function, integration).
If I now use a function with two arguments I still can plot the function with respect to x and y, but I will get an error when trying to do an integration:
"Evalutation of result expression - Unknown function or operator."
As I said I can plot the function correctly, so it can be found. And on the other hand functions are also found in integration when using a function with one argument.
Any ideas what could be wrong and what the solution could be?
Best,
Erik
I want to realize an integration in COMSOL 4.3a using self-written MATLAB functions.
If I use a test function with one input and one output argument everything works as expected (plotting function, integration).
If I now use a function with two arguments I still can plot the function with respect to x and y, but I will get an error when trying to do an integration:
"Evalutation of result expression - Unknown function or operator."
As I said I can plot the function correctly, so it can be found. And on the other hand functions are also found in integration when using a function with one argument.
Any ideas what could be wrong and what the solution could be?
Best,
Erik
3 Replies Last Post 19 févr. 2013, 02:22 UTC−5