Quantcast
Channel: Latest Discussions - COMSOL Forums
Viewing all articles
Browse latest Browse all 5773

Autogenerating geometry in Livelink MATLAB using for loops

$
0
0

Hello, I am currently using the Livelink using MATLAB software and I was wondering if there was an effective way to automate the creation of geometry using for loops.

I would like to be able to be able to make a for loop that will run the create geometry command while changing some parameter such as position while leaving the other parameters unchanged such as for c=1:10

model.component('comp1').geom('geom1').create(ri, 'Rectangle'); model.component('comp1').geom('geom1').feature(ri).set('size', {'width' 'height'*c}); model.component('comp1').geom('geom1').feature(ri).set('pos', {'-width' 'height'});


Viewing all articles
Browse latest Browse all 5773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>