I want my graph to show only red line. I'm not sure why it's showing orange line as well

2 views (last 30 days)
stem(x,y)
hold on
plot(x, 2.0477*exp(.4927*x))
x_dense= 0: .1: 5;
plot(x_dense, 2.0477 *...
exp(.4927*x_dense), 'r-')

Answers (1)

Ameer Hamza
Ameer Hamza on 14 Nov 2020
You have two plot() statements. Delete the first one if you just want red line
stem(x,y)
hold on
x_dense= 0: .1: 5;
plot(x_dense, 2.0477*exp(.4927*x_dense), 'r-')

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!