Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
Different results after exporting to Matlab
Posted 2011年5月11日 GMT-4 03:45 LiveLink for MATLAB 2 Replies
Please login with a confirmed email address before reporting spam
I have a problem related to scaling of variables that occurs when saving the mph-file as m-file and to use this file in Matlab (Livelink).
First of all, I noticed that under model.results, the units of dependent variables disappeared. Matlab gives errors but I filled in these between the empty brackets.
The problem I have is that the variables are scaled when running the simulation from Matlab, so that the results I get from Matlab are different from these in Comsol (factor 1000).
I would like to know how to extract correct values in Matlab.
First of all, I noticed that under model.results, the units of dependent variables disappeared. Matlab gives errors but I filled in these between the empty brackets.
The problem I have is that the variables are scaled when running the simulation from Matlab, so that the results I get from Matlab are different from these in Comsol (factor 1000).
I would like to know how to extract correct values in Matlab.
2 Replies Last Post 2011年5月12日 GMT-4 04:23