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 !
Cite As
Julien Dambrine (2024). Freefem to matlab (https://www.mathworks.com/matlabcentral/fileexchange/26833-freefem-to-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- 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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Freefem_to_matlab/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |