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 10 oct. 2023, 08:28 UTC−4
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 1 year ago 10 oct. 2023, 05:02 UTC−4

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: 1 year ago 10 oct. 2023, 08:28 UTC−4
Updated: 1 year ago 10 oct. 2023, 08:25 UTC−4

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