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.

Using a matlab function

Please login with a confirmed email address before reporting spam

I have made a function in matlab which takes in a distance and spits out a number. how do I use this in comsol. I want it to be part of the simulation

2 Replies Last Post 9 nov. 2011, 22:40 UTC−5

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 9 nov. 2011, 04:03 UTC−5
Well, you need the "LiveLink for MATLAB" module. If you own a license, the 'thermos_llmatlab' tutorial in COMSOL 4.2a shows the usage of external MATLAB functions. Other than that, the following post includes an example, too: www.comsol.de/community/forums/general/thread/7946/#p44147
Well, you need the "LiveLink for MATLAB" module. If you own a license, the 'thermos_llmatlab' tutorial in COMSOL 4.2a shows the usage of external MATLAB functions. Other than that, the following post includes an example, too: http://www.comsol.de/community/forums/general/thread/7946/#p44147

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 9 nov. 2011, 22:40 UTC−5
I am using 3.5a. Is there an example for that version?
I am using 3.5a. Is there an example for that version?

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.