Freefem to matlab
The function [p e t]=importfilemesh(<name>) reads <name> and creates the corresponding matlab-pde formatted mesh (p, e, t) that can be handeled with the matlab pde toolbox.
The function u=importfiledata(<name>) reads <name> and creates the corresponding matlab node data (u) that can be handeled with the matlab pde toolbox.
The file "freefem_example.edp" generates two files :
- A freefem-formatted mesh : "Gilgamesh.mesh"
- A node data file : "Heat.bb"
The example file shows how to read the mesh and node data generated by "freefem_example.edp", and how to plot them.
Enjoy !
Citation pour cette source
Julien Dambrine (2024). Freefem to matlab (https://www.mathworks.com/matlabcentral/fileexchange/26833-freefem-to-matlab), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- Mathematics and Optimization > Partial Differential Equation Toolbox > Geometry and Mesh >
- Mathematics and Optimization > Partial Differential Equation Toolbox > General PDEs > Visualization >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Freefem_to_matlab/
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |