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.
Accessing a pre-existing model node from MATLAB
Posted 20 dic 2017, 18:56 GMT-5 LiveLink for MATLAB Version 5.3a 1 Reply
Please login with a confirmed email address before reporting spam
Hello!
I have created a model using the Comsol interface which automatically generates a geometry node (by default, "Geometry 1"). Using MATLAB I wish to add the entity c1 (see below) to the "Geometry 1" node but I receive the following error message: "Undefined variable "geom1" or class "geom1.feature.create"."
My code is:
model.component('comp1').geom('geom1').lengthUnit('mm');
c1 = geom1.feature.create('c1','Circle'); c1.set('r',Ro); c1.set('pos',[0 0]);
Thank you in advance.