"Compute to Selected" via Matlab?

Thread index  |  Previous thread  |  Next thread  |  Start a new discussion

RSS FeedRSS feed   |   Email notificationsTurn on email notifications   |   1 Reply   Last post: October 4, 2012 8:17am UTC
Evgeni Sergeev

Evgeni Sergeev

October 4, 2012 12:18am UTC

"Compute to Selected" via Matlab?

With the Comsol UI, I can right-click on "Dependent Variables 1" and choose "Compute to Selected".

I can't seem to find any way to do the equivalent with LiveLink for Matlab. It seems that it's only possible to "runAll". Is anyone aware of a way to do this?

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse

John H.

John H.

October 4, 2012 8:17am UTC in response to Evgeni Sergeev

Re: "Compute to Selected" via Matlab?

Looking at the code generated by the GUI (i.e., saving the model as M-file) after doing what you described, it should be something like

model.sol('sol1').run('v1');

where 'sol1' is the "Solver 1" node's tag and 'v1' the "Dependent Variables 1" node's tag.

Reply  |  Reply with Quote  |  Send private message  |  Report Abuse


Rules and guidelines