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.

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 8 giu 2023, 06:41 GMT-4
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 8 giu 2023, 06:41 GMT-4

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]);

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.