MATLAB: 网格转换的问题

pde 网格

我想用MATLAB里面的pde模块求解一个亥姆霍兹方程,亥姆霍兹方程的系数是随空间变化的变量。我的系数数据是在矩形网格上的数据,而pde用的是三角网格。请问我怎样才能把矩形网格的数据用在三角网格上呢?谢谢大家的阅读与帮忙。

Best Answer

(Quoted answer copied from a similar question)
"I'm afraid that you cannot use a rectangular mesh with PDE Toolbox. The toolbox uses triangular meshes only.
Alan Weiss
MATLAB mathematical toolbox documentation"
So you'll have resample that rectangular grid to a triangular grid.