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!