Why does my plot not appear?

2 views (last 30 days)
Aric Rozario
Aric Rozario on 23 Oct 2020
Commented: Walter Roberson on 23 Oct 2020
Vmax = 354*10^(-6);
Km = 1.5*10^(-3);
S = .0000005:.0000005:.000030;
v = Vmax*S/(Km + S);
plot(S,v);
This is my code and it shows no errors but it does not appear on the figure tab. I am a beginner and I do not know how to correct this.

Answers (1)

Rafael Hernandez-Walls
Rafael Hernandez-Walls on 23 Oct 2020
Vmax = 354*10^(-6);
Km = 1.5*10^(-3);
S = .0000005:.0000005:.000030;
v = Vmax*S./(Km + S);
plot(S,v);
  3 Comments
Walter Roberson
Walter Roberson on 23 Oct 2020
You used the / operator instead of the ./ operator. A/B is approximately the same as A*pinv(B) -- an algebraic matrix operator, not an element-by-element operator.
The S values you are adding to Km are vary small, so Km+S is the same as Km alone, to within the resolution that you are plotting at.

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by