MATLAB: Trying to plot radioactive decay equation

decayequationexponentialnegativeplotplottingradioactive

I am trying to plot a radioactive decay equation. I have attached a screen shot of my current code and a picture of the final result that I need to go get to. Why is my current code not working? Matlab won't plot it.

Best Answer

Daniel, you can simply do
lambda = log10(2)/5700;
x = 1:100;
y = (-1/lambda)*log10(x/100);
plot(x,y)