MATLAB help for cell disruption modelling -
i keep getting error "error using -""matrix dimensions must agree" piece of code. can me , identify i'm going wrong? should getting 8 plots of f vs d.
p=500; n=1:1:8; a=-0.4; b=-1; kd=700; d50star=(1./(10.^(kd*(n.^a)*(p-115).^b))) w0=0.45; d=0:0.1:10 d50n0=5; if d50star < 0.33; w=(1-(2.3*d50star))*w0 else w=(3.4-(5.5*d50star))*w0 end d50=(1-d50star)*d50n0; f=1-(1./((1+exp((d-d50)/w))))
there @ least 2 errors in script:
1) in last line [f=1-(1./((1+exp((d-d50)/w))))]
d
size 1x101 d50
size 1x8
the size inconsistency related definition of: n=1:1:8;
, d=0:0.1:10
2) depending on algoroth, ./w
instead of /w
hope helps.
Comments
Post a Comment