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 18 sept. 2019, 04:21 UTC−4
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 5 years ago 16 sept. 2019, 10:26 UTC−4

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 18 sept. 2019, 04:21 UTC−4

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.