How to fit a hill curve on scatterplot

조회 수: 11 (최근 30일)
Aaron Ouyang
Aaron Ouyang 2022년 7월 14일
댓글: Aaron Ouyang 2022년 7월 15일
Hi,
I've been plotting dose-response curves of the concentration of a drug vs. the response. I want to insert a binding curve based on the Hill equation on top of my scatterplot and was wondering how I can fit this curve on my graph. Here's the equation that I've been referring to and I've also been looking into custom matlab functions like this, but I've haven't really had much success. Here's my code and graph:
scatter(conc_nm_5ht,resp_conc_5ht)
set(gca, 'XScale', 'log')
Thanks!

답변 (1개)

Rishita
Rishita 2022년 7월 15일
mx = 0;
mn = 1;
ec50 = 0.25;
n=5;
x=0:.01:1;
y = mn + (mx-mn)*ec50^n./(ec50^n+x.^n);
plot(x,y)
grid on
Try this
  댓글 수: 1
Aaron Ouyang
Aaron Ouyang 2022년 7월 15일
Thanks.
That generates a generic sigmoidal curve. How can I get it to fit my data specifically though?

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

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by