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

Matlab mph functions calling a selection

$
0
0

Hi everyone,

I get into a problem, that I cant fix after half a day trying. I created a matlab instance of a comsol simulation, which I then manipulated. Now I want to access the model after I run it:

mod1 = model; mphviewselection(mod2,"geom1_csel2_dom")

but then i get the error:

"SWITCH expression must be a scalar or character vector constant."

to check that I really used the right selection tag i checked:

mod1.selection

what gives me:

"Type: List Tag: selection Child nodes: geom1_csel1_pnt, geom1_csel1_bnd, geom1_csel1_dom, geom1_csel2_pnt, geom1_csel2_bnd, geom1_csel2_dom"

so the reference does exist, but somehow it cant access it... I tried many things, but can't find a solution. I hope you can help me out of this?

Best, Joel


Viewing all articles
Browse latest Browse all 71

Trending Articles