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.

how to connect comsol to matlab.

Please login with a confirmed email address before reporting spam

Hi. My comsol version is 3.5a and matlab is R2012a.

I made a M-file through comsol. And I tried to open it in matlab.
But it didnt work. So i wonder what the problem is.

When i ran m-file in matlab i showed this message.

>> comsol
Undefined function 'flclear' for input arguments of type 'char'.

Error in comsol (line 4)
flclear fem

>>

I don't know the reason. But i think i have to make something about program in M-file, right??

If you know how to do in this case, let me know.

Thanks.

2 Replies Last Post Apr 22, 2014, 8:51 a.m. EDT
Alejandro Vidal-Rosas

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Apr 19, 2014, 10:26 a.m. EDT
Same problem: undefined function flclear for input of type char
Same problem: undefined function flclear for input of type char

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago Apr 22, 2014, 8:51 a.m. EDT
Right. So I was looking for this solution of my problem.
but I really don't know how to solve.
And I watched a video about working comsol with matlab.
there was also written about 'flclear'. But it was working...
So I really want to know what problem is...

Please somebody know it, leave a message..
Right. So I was looking for this solution of my problem. but I really don't know how to solve. And I watched a video about working comsol with matlab. there was also written about 'flclear'. But it was working... So I really want to know what problem is... Please somebody know it, leave a message..

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.