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 import the f(x,y) function computed in MATLAB into COMSOL

Please login with a confirmed email address before reporting spam

Dear all,

I want to import the f(x,y) function computed in MATLAB into COMSOL, I don't know which function to use The data I got with MATLAB is discretized, the variables x,y are 601x1 matrices, f(x,y) is the 601x601 matrix, I don't know which function to use to import this three-dimensional discrete data into COMSOL. Best regards!

The function shape is in the file.



2 Replies Last Post 2023年10月10日 GMT-4 08:28
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 months ago 2023年10月10日 GMT-4 05:02

Hi 一怡 马

mphinterpolationfile should be a good place to start.

-------------------
Lars Gregersen
Comsol Denmark
Hi 一怡 马 mphinterpolationfile should be a good place to start.

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 8 months ago 2023年10月10日 GMT-4 08:28
Updated: 8 months ago 2023年10月10日 GMT-4 08:25

...and if you want to do it from the GUI, use Interpolation Functions. They have been discussed many time in this Discussion Forum.

Jeff

-------------------
Jeff Hiller
...and if you want to do it from the GUI, use Interpolation Functions. They have been discussed many time in this Discussion Forum. Jeff

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.