How do I write $sin(pi*x)*sin(pi*y)?
3 ビュー (過去 30 日間)
古いコメントを表示
I tried to solve
on
and
on the boundary.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/565831/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/565836/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/565841/image.png)
I get error when I write
. Can anyone help in the following code?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/565846/image.png)
model = createpde;
g = geometryFromEdges(model,@squareg);
pdegplot(model)
pdegplot(model,'EdgeLabels','on');
axis equal
applyBoundaryCondition(model,'dirichlet','Edge',1:model.Geometry.NumEdges,'u',0);
specifyCoefficients(model,'m',0,'d',0,'c',1,'a',0,'f',sin(pi*x)*sin(pi*x));
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Geometry and Mesh についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!