Hi,
Are there someone would like to give me some help about 'model.para.set'?
I have three variables in comsol model, which are p_1, p_2, p_3.
So in my matlab function, I worte
model.para.set ('p_1',x(:,1));
model.para.set ('p_2',x(:,2));
model.para.set ('p_1',x(:,3));
Is there some way to write them somehow in one sentence, like
model.param.set(p(j),x(k,j));
this is totally wrong, but I want to find a way to call 'model.param.set' only once and deal with a matrix rather than several times deal with an element each time.
Thanks for the help in advance.
Best regards
Yanrui
Are there someone would like to give me some help about 'model.para.set'?
I have three variables in comsol model, which are p_1, p_2, p_3.
So in my matlab function, I worte
model.para.set ('p_1',x(:,1));
model.para.set ('p_2',x(:,2));
model.para.set ('p_1',x(:,3));
Is there some way to write them somehow in one sentence, like
model.param.set(p(j),x(k,j));
this is totally wrong, but I want to find a way to call 'model.param.set' only once and deal with a matrix rather than several times deal with an element each time.
Thanks for the help in advance.
Best regards
Yanrui