- Solve the PDE using “pdepe” or PDE Toolbox.
- Save the solution in a “.mat” file or directly as a lookup table in the generated code.
- Use interpolation in the generated code to evaluate the PDE solution.
function pdepe coder generation
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi all,
I am trying to generate a dynamic library file by using 'coder'. When I trying to do it, there is an information said that the function 'pdepe' is not supported in code generation. I am wondering if there is any solution to it like a replacement of the 'pdepe' function or some other settings?
Thank you in advance
댓글 수: 0
답변 (1개)
Harsh
2025년 1월 25일
Hi Tonghui,
The “pdepe” function is not supported for code generation so it cannot be used while generating dynamic library using MATLAB coder. As a workaround you can follow the below steps:
You can also create your own implementation of a PDE solver similar to “pdepe”. To understand the algorithm behind “pdepe” function you may refer to the following documentation - https://www.mathworks.com/help/matlab/ref/pdepe.html#f93-998620_vh:~:text=have%20a%20jump.-,Algorithms,-The%20time%20integration
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 PDE Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!