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

Transferring values to MATLAB using Livelink

$
0
0
I have constructed a COMSOL model and exported it as a .m file. In the model, I have a derived value corresponding to the strain energy integrated over the volume of my system which I want to extract from COMSOL into Matlab. I have tried using model.result.numerical(<variable_name>).getReal(); as suggested by one source online, but it returned an empty array. Do you know a way to extract this sot of value which might work? If it is helpful, I attached my .m file.

Viewing all articles
Browse latest Browse all 26527

Trending Articles