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.

mphglobal in magnetic field

Please login with a confirmed email address before reporting spam

Hi all,
I have made a Magnetic Bearing model in Comsol Multiphysics 4.2a and I saved it as M-File. I ran it in MATLAB R2011a but the mphglobal command didn't allow me to evaluate the global variables defined in COMSOL.

Below I show you the MATLAB error message:

Error in ==> experiment at 223
A=mphglobal(model,'qx');

where qx is the global variable defined in COMSOL...


Could you please tell me what is the reason of this error?

Thank you very much,
Daniele

1 Reply Last Post 17.10.2013, 06:45 GMT-4
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 17.10.2013, 06:45 GMT-4
Hi

If qx is indeed a global variable then the call to mphglobal should work. Can you post your model here (or send it to support)?


Lars Gregersen
Comsol Denmark
Hi If qx is indeed a global variable then the call to mphglobal should work. Can you post your model here (or send it to support)? Lars Gregersen Comsol Denmark

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.