Boundary definition by MATLAB

Please login with a confirmed email address before reporting spam

Hi I want to set boundaries by using MATLAB command line it is my sample code:

model.component('comp1').selection('sel1').set(num2str(4),num2str(5),num2str(6));

or

model.component('comp1').selection('sel1').set(4,5,6);

but it is not working could you help me?


1 Reply Last Post 2023年6月8日 GMT-4 06:41
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 4 months ago 2023年6月8日 GMT-4 06:41

Is this what you're looking for:

model.component('comp1').selection('sel1').set([4,5,6]);
-------------------
Lars Gregersen
Comsol Denmark
Is this what you're looking for: model.component('comp1').selection('sel1').set([4,5,6]);

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.