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

Matlab, parametric sweep and plotting

$
0
0
Hi,

I'm running my comsol model with livelink for matlab but I cannot succeed the plotting...

model.sol('sol1').create('t1', 'Time');
model.sol('sol1').feature('t1').set('tlist', 'range(0,solution_time/300,solution_time)');

model.batch('p1').set('pname', {'L'});
model.batch('p1').set('plistarr', {'range(0.18,0.01,0.22)'});

as you can see I run a parametric sweep on a transient study.

mphplot(model,'pg1') show me the plot at the last time and for the last parameter L(5)=0.22,


How can I plot, for example, at half time and for L(2)=0.19 ??


I spent two hours with mphevaluate and other tools but cannot manage to print something, and for sure it's not so hard, but a little help would be greatly appreciated.

Cheers,
Irene

Viewing all articles
Browse latest Browse all 428

Trending Articles



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