Please login with a confirmed email address before reporting spam
Hi,
Not sure if you ever solved your problem, but I just saw this and thought I would update this thread for folks with the same problem since I had it as well.
I was running COMSOL 4.2 with LiveLink and Matlab 2010b and they seemed to not know about each other. If you go to page 96 of the COMSOL installation manual (PDF) it shows you how to check the comsol.ini and comsomserver.ini files in your BIN directory. These files must include a line that tells COMSOL where your Matlab directory is stored on your machine. In most cases, you may just have to change this line, but in my case, this line was actually missing completely!
So go to COMSOL -> BIN -> (Platform (eg MACI32/64. or WIN32/64) and edit the comsol.ini and comsolserver.ini using a text editor.
(the following shows the line with a path on a MAC, but the install manual shows examples for Windows as well).
Find the line: -Dcs.mlroot=/Applications/MATLAB_R2010b.app
and be sure this line points to the correct path for your Matlab installation. In my case, this line was completely absent, so I just pasted it in at the end of each file.
Now you should be able to open COMSOL with Matlab and it should automatically start Matlab for you when you do.
I have the student license for Comsol 4.0 and i have installed Matlab R2010a. After the installation of Comsol i never got "Matlab with Comsol" icon or anything that indicates connection of these two. I re-installed the Comsol a few times and tried to include everything that indicates this connection but it never works. It has installed "LiveLink" which is supposed to connect Matlab and Comsol but i don`t know how to use LiveLink. When i save Comsol files as .m files and try to run it complaines that it doesn`t recognize the command or class.
What could go wrong?
Hi,
Not sure if you ever solved your problem, but I just saw this and thought I would update this thread for folks with the same problem since I had it as well.
I was running COMSOL 4.2 with LiveLink and Matlab 2010b and they seemed to not know about each other. If you go to page 96 of the COMSOL installation manual (PDF) it shows you how to check the comsol.ini and comsomserver.ini files in your BIN directory. These files must include a line that tells COMSOL where your Matlab directory is stored on your machine. In most cases, you may just have to change this line, but in my case, this line was actually missing completely!
So go to COMSOL -> BIN -> (Platform (eg MACI32/64. or WIN32/64) and edit the comsol.ini and comsolserver.ini using a text editor.
(the following shows the line with a path on a MAC, but the install manual shows examples for Windows as well).
Find the line: -Dcs.mlroot=/Applications/MATLAB_R2010b.app
and be sure this line points to the correct path for your Matlab installation. In my case, this line was completely absent, so I just pasted it in at the end of each file.
Now you should be able to open COMSOL with Matlab and it should automatically start Matlab for you when you do.
[QUOTE]
I have the student license for Comsol 4.0 and i have installed Matlab R2010a. After the installation of Comsol i never got "Matlab with Comsol" icon or anything that indicates connection of these two. I re-installed the Comsol a few times and tried to include everything that indicates this connection but it never works. It has installed "LiveLink" which is supposed to connect Matlab and Comsol but i don`t know how to use LiveLink. When i save Comsol files as .m files and try to run it complaines that it doesn`t recognize the command or class.
What could go wrong?
[/QUOTE]