MATLAB pdetool工具箱中常用函數(shù)(I)
? ? ? ? MATLAB的偏微分方程工具箱 pdetool 中有許多內(nèi)置函數(shù),但大部分介紹的都是pdetool的簡單應(yīng)用,并沒有涉及 pdetool 內(nèi)置函數(shù)的使用。 本文介紹一些 pdetool 中內(nèi)置函數(shù)的語法及用途。

1. ?poimesh,此函數(shù)通過將矩形沿 x 軸方向劃分為 nx 個網(wǎng)格塊,沿 y 軸方向劃分為 ny 個網(wǎng)格塊,在矩形幾何體上構(gòu)建規(guī)則網(wǎng)格。
? ? ?語法:
? ? ?[p,e,t] = poimesh(g,nx,ny),
? ? ?[p,e,t] = poimesh(g,n),
? ? ?[p,e,t] = poimesh(g),
? ? ?輸入?yún)?shù): ?
? ? ? g - ?分解幾何矩陣
? ? ? nx - 沿 x 方向的分割數(shù)
? ? ? ny - 沿 Y 方向的分割數(shù)
? ? ? n - 分割次數(shù)
? ? ?輸出參數(shù):
? ? ? p - 網(wǎng)格點(diǎn) ? ? ? ? ?
? ? ??e - 網(wǎng)格邊
? ? ??t - 網(wǎng)格三角形
關(guān)于 [p,e,t] 的具體說明,可以參考 MATLAB 文檔,在調(diào)用 pdetool 內(nèi)置函數(shù)時,需要將自己的 [p,e,t] 數(shù)據(jù)結(jié)構(gòu)與 MATLAB 數(shù)據(jù)結(jié)構(gòu)保持一致。
? ? ? 示例:

標(biāo)簽: