How do I write $sin(pi*x)*sin(pi*y)?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Geometry and Mesh dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!