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

2 ビュー (過去 30 日間)
Ahmed
Ahmed 2020 年 11 月 14 日
回答済み: Ameer Hamza 2020 年 11 月 14 日
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-')

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 14 日
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-')

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by