Determining diffusion using cftool and error function

조회 수: 4 (최근 30일)
Marko Uksanovic
Marko Uksanovic 2016년 4월 20일
댓글: Erik Schiferle 2020년 8월 6일
I'm trying to determine the diffusion constant for an experiment I ran. I have the appropriate equation but don't know too much about MATLAB. I eventually found that trying to fit a custom equation using cftool is the best way to go about this.
So into MATLAB I've loaded 2 vectors, one being time(x) and one being the concentration(y).
The equation is input is: a/2 * erf(1 + (1 / sqrt(4 * b * x)))
where: a is the initial concentration (0) and b is the diffusion constant (the parameter I've trying to solve). When I put this in however, I get a b value I know to be wrong (I roughly expect it to be ~E-07 - E-12), also I get no line to fit my data unlike the in-built solutions.
I've attached an image of my cftool window
Any help is greatly appreciated
  댓글 수: 1
Erik Schiferle
Erik Schiferle 2020년 8월 6일
Hi Marko,
Did you ever figure this out? I am trying to do the same thing...
Erik

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Curve Fitting Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by