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.

multiple domain filed avaverge in matlab with comsol

Please login with a confirmed email address before reporting spam

Hi, I am recently using the average function in the matlab with comsol for the homogenization of the filed in the domain, I know that I can use the command in matlab mphmean(model,'emw.Ex','volume','selection',18)
for the volume average of Ex in domain 18, but my question is how can I get multiple domain filed average like the Ex volume average of both the domain 18 and 41?

1 Reply Last Post Sep 18, 2017, 2:50 a.m. EDT
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 years ago Sep 18, 2017, 2:50 a.m. EDT
Updated: 7 years ago Sep 18, 2017, 2:51 a.m. EDT

Hi

This should work:

mphmean(model,'emw.Ex','volume','selection',[18 41])

-------------------
Lars Gregersen
Comsol Denmark
Hi This should work: mphmean(model,'emw.Ex','volume','selection',[18 41])

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.