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.
mpheval(..) usage for 1D-Data
Posted 04.09.2015, 04:37 GMT-4 Version 5.0 2 Replies
Please login with a confirmed email address before reporting spam
Dear Concerned,
I am new to COMSOL live link. I have a working model in COMSOL and the model's output is 1D which is voltage. I have no problems in plotting the data in matlab using model.mphplot('pg1'). Further i do not have problems in plotting the data in COMSOL using 1-D plot group. However when i try to export the data to matlab workspace using
data = mpheval(model,'pg1'), I get the below error:
Undefined variable.
- Variable: pg1
- Geometry: geom1
- Domain: 3
Failed to evaluate expression.
- Expression: real(pg1)
I found similar usage of the functions in the examples and the data is loaded in the workspace as structures without any problem(3D data). However it does not work with simple 1D data. I tried out many combinations of parameters and nothing works out.
Kindly help me with some simple example on the usage.
Thank you.
yours sincerely,
Chris
I am new to COMSOL live link. I have a working model in COMSOL and the model's output is 1D which is voltage. I have no problems in plotting the data in matlab using model.mphplot('pg1'). Further i do not have problems in plotting the data in COMSOL using 1-D plot group. However when i try to export the data to matlab workspace using
data = mpheval(model,'pg1'), I get the below error:
Undefined variable.
- Variable: pg1
- Geometry: geom1
- Domain: 3
Failed to evaluate expression.
- Expression: real(pg1)
I found similar usage of the functions in the examples and the data is loaded in the workspace as structures without any problem(3D data). However it does not work with simple 1D data. I tried out many combinations of parameters and nothing works out.
Kindly help me with some simple example on the usage.
Thank you.
yours sincerely,
Chris
2 Replies Last Post 09.09.2015, 01:43 GMT-4