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

Error while using Matlab LiveLink

$
0
0
I'm facing a problem while using Matlab LiveLink.

--------------------------------------------------------------------------
geom1 = model.geom.create('geom1', 2);

c1 = geom1.create('c1', 'Circle');
c1.label('c1')
c1.set('r', '40');

c2 = geom1.create('c2', 'Circle');
c2.label('c2');
c2.set('r', '20');

dif1 = geom1.create('dif1', 'Difference');
dif1.selection('input').set(c1.label);
dif1.selction('input2').set(c2.label);
--------------------------------------------------------------------------

The code above gave the following error.

--------------------------------------------------------------------------
No method 'set' with matching signature found for class 'com.comsol.clientapi.impl.LocalGeomObjectSelectionClient'.

Error in
dif1.selection('input').set(c1.label);
--------------------------------------------------------------------------

Could anyone explain why this is happening?

Viewing all articles
Browse latest Browse all 428

Trending Articles



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