f coefficient in PDEtool: exponential function of state.u

4 views (last 30 days)
I am currently working on solving a pde imposing c coefficient as an exponential function of the unknow and the location, as below:
cCoef= @(location,state) k.*(exp(state.u-location.y));
However, when I run the code it does not to consider the exponential relationship.
I could not find any question answering this problem, only addressing how to write a coefficent dependent only on location or only on the unknow.

Answers (1)

Priyanka Kondapalli
Priyanka Kondapalli on 9 Feb 2022
Below are few links that can help you guide during the exponential function

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!