Hi Guys,(adsbygoogle = window.adsbygoogle || []).push({});

I'm trying to do a simple first-order, 1d (x-direction) simulation of mass transfer with the finite element toolbox in matlab for the following closed set of equations:

(Please note: "X" is not to be confused with the lowercase spatial dimension "x")

However, every time I cannot define the temperature (at least with exponential and erfc) without an error. Does anyone know if there is a proper syntax for this?

I appreciate your help.

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB Numerical solution in matlab

Have something to add?

Draft saved
Draft deleted

**Physics Forums | Science Articles, Homework Help, Discussion**