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.

Open 3D matrix from MATLAB in COMSOL

Please login with a confirmed email address before reporting spam

Hello!

I have 3D matrix in MATLAB (temperature field). I can save it in . mat format. Can i open this matrix in COMSOL?

URL at matrix: https://yadi.sk/d/20vvHulLFtyVCw

Best regards, Alexey


2 Replies Last Post 2019年9月18日 GMT-4 04:21
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 2019年9月16日 GMT-4 10:26

HEllo Alexey,

That looks like a job for an interpolation function. See COMSOL Multiphysics version 5.4 Reference Manual, page 301 and following. You can reach all manuals from within the software under File > Help > Documentation.

Best regards,

Jeff

-------------------
Jeff Hiller
HEllo Alexey, That looks like a job for an interpolation function. See COMSOL Multiphysics version 5.4 Reference Manual, page 301 and following. You can reach all manuals from within the software under File > Help > Documentation. Best regards, Jeff

Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 2019年9月18日 GMT-4 04:21

Hi Alexey

You can use the function mphinterpolationfile to save a Matlab matrix as a file that Comsol can read when defining an interpolation function.

-------------------
Lars Gregersen
Comsol Denmark
Hi Alexey You can use the function mphinterpolationfile to save a Matlab matrix as a file that Comsol can read when defining an interpolation function.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.