Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.
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.
Can COMSOL accept vector valued inputs from MATLAB functions?
Posted 27 sept. 2012, 21:44 UTC−4 Interfacing, Parameters, Variables, & Functions Version 4.3 1 Reply
Please login with a confirmed email address before reporting spam
Hello,
Here, I have a function [Y1;Y2;Y3] = f(X1,X2,X3) which is defined in matlab.
In COMSOL v3.5a, I have to assign Y1, Y2, Y3 seperately as follow:
Y1 = f(X1,X2,X3)
Y2 = f(X1,X2,X3)
Y3 = f(X1,X2,X3)
I am wondering if I can directly assign the vector output of matlab to COMSOL variables in the new version.
Thanks
Dan
Here, I have a function [Y1;Y2;Y3] = f(X1,X2,X3) which is defined in matlab.
In COMSOL v3.5a, I have to assign Y1, Y2, Y3 seperately as follow:
Y1 = f(X1,X2,X3)
Y2 = f(X1,X2,X3)
Y3 = f(X1,X2,X3)
I am wondering if I can directly assign the vector output of matlab to COMSOL variables in the new version.
Thanks
Dan
1 Reply Last Post 28 sept. 2012, 12:57 UTC−4