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 Oct 10, 2023, 8:28 a.m. EDT
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 7 months ago Oct 10, 2023, 5:02 a.m. EDT

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: 7 months ago Oct 10, 2023, 8:28 a.m. EDT
Updated: 7 months ago Oct 10, 2023, 8:25 a.m. EDT

...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.