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.
How to retrieve a variable from MATLAB and use in COMSOL
Posted 14 mag 2017, 06:52 GMT-4 1 Reply
Please login with a confirmed email address before reporting spam
Hi all.
I am using MATLAB in my COMSOL model. After defining all the input variables in the .m file and saving it in the same directory with the .mph file, the simulation shows no error but i don't know how i can access and use the output variable from the .m file?
e.g. function[Ax]=permtty(tx, kx, lam0) .....how can i retrieve and use "Ax" in the COMSOL model?
Hope anyone can help.
I am using MATLAB in my COMSOL model. After defining all the input variables in the .m file and saving it in the same directory with the .mph file, the simulation shows no error but i don't know how i can access and use the output variable from the .m file?
e.g. function[Ax]=permtty(tx, kx, lam0) .....how can i retrieve and use "Ax" in the COMSOL model?
Hope anyone can help.
1 Reply Last Post 16 mag 2017, 06:17 GMT-4