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 11 mai 2011, 03:45 UTC−4 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 12 mai 2011, 04:23 UTC−4