The beginning of my graph is getting the wrong values. values for x=20,25 and 30 are correct. can someone help?

1 view (last 30 days)
x=0:5:30;
y=(110)*x/(5+x).*exp((-0.8*x)/8);
plot(x,y)

Answers (1)

Walter Roberson
Walter Roberson on 25 Oct 2021
x=0:5:30;
y = (110) .* x ./ (5+x) .* exp((-0.8*x)/8);
plot(x,y)

Tags

Community Treasure Hunt

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

Start Hunting!