How can I plot 3 lines different plots in one plot?

1 回表示 (過去 30 日間)
Ahzabuddin
Ahzabuddin 2016 年 4 月 22 日
コメント済み: Star Strider 2016 年 5 月 20 日
I have interpolation by linier and curve method. T = [0:8:40]; o = [14.621 11.843 9.870 8.418 7.305 6.413]; for linier method is x = [24 32]'; >> y = [8.418 7.305]; >> Newtint(x,y,27) for curve(quadratic) method is x1 = [16 24 32]'; >> y1 = [9.870 8.418 7.305]; >> Newtint(x1,y1,27)
How can I plot all of them in one plot? plot (T,o,'o-b') and (x,y,'s--g') and (x1,y1,'d--r)
I wanna plot like this picture:
thanks for your help

回答 (1 件)

Star Strider
Star Strider 2016 年 4 月 22 日
To plot them all in one plot, use the hold function.
  2 件のコメント
Ahzabuddin
Ahzabuddin 2016 年 5 月 20 日
thanks Sir. I get it
Star Strider
Star Strider 2016 年 5 月 20 日
My pleasure.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by