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.
Cannot link comsol with matlab.
Posted 26.10.2012, 04:08 GMT-4 Interfacing Version 4.2a 1 Reply
Please login with a confirmed email address before reporting spam
Hi,
Now I want to link matlab with comsol.
I know there are two methods, click the 'COMSOL 4.2a with MATLAB' or set up manually in matlab. But NONE of them works.
1. When I start 'COMSOL 4.2a with MATLAB', just the matlab starts, it doesn't link with comsol. when i type mphstart, it said "Undefined function or variable 'mphstart'."
2. when i start matlab, type
>>addpath ('C:/Program Files/COMSOL/COMSOL42a/mli')
>>mphstart
then it said
Error using mphstart (line 117)
A connection to Comsol could not be established. Please check that a Comsol Server is started prior to calling
mphstart
What's wrong with it?
Hope you could help me.
Thanks.
Now I want to link matlab with comsol.
I know there are two methods, click the 'COMSOL 4.2a with MATLAB' or set up manually in matlab. But NONE of them works.
1. When I start 'COMSOL 4.2a with MATLAB', just the matlab starts, it doesn't link with comsol. when i type mphstart, it said "Undefined function or variable 'mphstart'."
2. when i start matlab, type
>>addpath ('C:/Program Files/COMSOL/COMSOL42a/mli')
>>mphstart
then it said
Error using mphstart (line 117)
A connection to Comsol could not be established. Please check that a Comsol Server is started prior to calling
mphstart
What's wrong with it?
Hope you could help me.
Thanks.
1 Reply Last Post 26.10.2012, 05:26 GMT-4