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.

Problem "To extract COMSOL data "

Please login with a confirmed email address before reporting spam

Hi
I try to follow all the steps that is mentioned in the LIVELINK FOR MATLAB USER GUIDE

"Start to load the model busbar from the COMSOL model library, enter the command:

model = mphload('busbar');

To extract the temperature and the electric potential field, use the command mpheval
as below:

dat = mpheval(model, {'T' 'V'}, 'selection', 1);

To display the temperature field enter:

mphplot(dat, 'index', 1); "

but I obtain the following error .......

??? Error: File: mphplot.p Line: 2063 Column: 0 Expression or statement is incomplete or incorrect.

I do not understand why?

I appreciate any help !!

1 Reply Last Post 11 avr. 2013, 17:42 UTC−4

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 11 avr. 2013, 17:42 UTC−4
I copied and pasted exactly the commands you posted: they work with 4.3a.. I get the temperature filed of the bushbar
I copied and pasted exactly the commands you posted: they work with 4.3a.. I get the temperature filed of the bushbar

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.