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 2017年5月14日 GMT-4 06:52 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 2017年5月16日 GMT-4 06:17