I have this figure
and I want to draw a line between the head of first bar (at x=-25) and the end of the red curve(at x=0) like this:
I try to draw the line using the exponential distribution
EEPY=0.019522:-0.00069:0.00172441;mu=expfit(EEPY); % n estimate parameters maximum likelihood exponential
xgride = linspace(-25,0,100);Ee=exppdf(xgride,mu);line(xgride,Ee,'color','g')
and I try another way to draw the line
EEPY=0.019522:-0.00069:0.00172441;EEPX=-25:1:0xvaluese=linspace(min(EEPX),max(EEPX));yvaluese=interp1(EEPX,EEPY,xvaluese,'spline');plot(xvaluese,yvaluese,'g--') % this plot a straight line
but I got nothing…
how I could match the two points
Best Answer