Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
17 feb 2014, 11:27 GMT-5
Hi,
you need to connect Matlab with a Comsol server first if you want to run exported m-files. In Linux a connected Matlab instance can be started by 'comsol server matlab' (assuming that the system links for Comsol and Matlab are set up properly). If you don't know how to connect, you have a look at section 'Running COMSOL with MATLAB' in the LiveLink user guide.
Best regards,
Eli
Hi,
you need to connect Matlab with a Comsol server first if you want to run exported m-files. In Linux a connected Matlab instance can be started by 'comsol server matlab' (assuming that the system links for Comsol and Matlab are set up properly). If you don't know how to connect, you have a look at section 'Running COMSOL with MATLAB' in the LiveLink user guide.
Best regards,
Eli
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
17 feb 2014, 13:08 GMT-5
So essentially, I won't be run it on Matlab Desktop? It will have to be through Comsol with Matlab?
So essentially, I won't be run it on Matlab Desktop? It will have to be through Comsol with Matlab?
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
17 feb 2014, 14:52 GMT-5
Matlab needs to load some special libraries that come with the LiveLink package and then to connect to a Comsol server. Matlab alone is not capable of using any of the commands listed in the LiveLink user guide or handling a Comsol model in any way. So yes, you can use Matlab in Desktop mode, but you have to connect it a Comsol server. That is actually the default setup for writing Matlab code that controls Comsol via the LiveLink toolbox.
Matlab needs to load some special libraries that come with the LiveLink package and then to connect to a Comsol server. Matlab alone is not capable of using any of the commands listed in the LiveLink user guide or handling a Comsol model in any way. So yes, you can use Matlab in Desktop mode, but you have to connect it a Comsol server. That is actually the default setup for writing Matlab code that controls Comsol via the LiveLink toolbox.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
19 feb 2014, 14:24 GMT-5
Thanks for the reply. Is there anyway to create a GUI for example 3 in the following PDF though?
www.uaemex.mx/fciencias/Main/LiveLinkforMATLAB_43b.pdf
I want to be able to modify various parameters in the GUI and be able to change the results in the GUI also.
Thanks for the reply. Is there anyway to create a GUI for example 3 in the following PDF though?
http://www.uaemex.mx/fciencias/Main/LiveLinkforMATLAB_43b.pdf
I want to be able to modify various parameters in the GUI and be able to change the results in the GUI also.
Please login with a confirmed email address before reporting spam
Posted:
1 decade ago
20 feb 2014, 12:43 GMT-5
I'm not sure which example in the PDF you are referring to. In general it should be possible to control parameters and evaluate results using a MATLAB GUI. But solving often takes some time it makes not much sense to me to do all the things in a GUI window which is open all the time. My typical workflow is as follows: I set up parameters for my model stored in a MATLAB script, then start the run cases on a server. During runtime I log the progress in a textfile. When solving is finished the system sends me an email using sendmail. After that examine the results using some MATLAB scripts. Maybe you can avoid using GUIs in a similar way.
I'm not sure which example in the PDF you are referring to. In general it should be possible to control parameters and evaluate results using a MATLAB GUI. But solving often takes some time it makes not much sense to me to do all the things in a GUI window which is open all the time. My typical workflow is as follows: I set up parameters for my model stored in a MATLAB script, then start the run cases on a server. During runtime I log the progress in a textfile. When solving is finished the system sends me an email using sendmail. After that examine the results using some MATLAB scripts. Maybe you can avoid using GUIs in a similar way.