connect these points as a curve

18 ビュー (過去 30 日間)
Salvatore Mazzarino
Salvatore Mazzarino 2012 年 9 月 28 日
I have a vector made of 10 values
1 2 3 4 5 6 7 8 9 10
and another row vector made of:
1.2012e-03 2.3046e-03 2.8067e-03 3.0078e-03 5.7281e-03 5.2235e-03 6.7391e-03 7.1429e-03 6.3348e-03 1.0698e-02
I would plot these values in the way they form a curve instead lines. Which is the correct function to do this?

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 9 月 28 日
編集済み: Azzi Abdelmalek 2012 年 9 月 28 日
x=[1 2 3 4 5 6 7 8 9 10]
y=[1.2012e-03 2.3046e-03 2.8067e-03 3.0078e-03 5.7281e-03 5.2235e-03 6.7391e-03 7.1429e-03 6.3348e-03 1.0698e-02]
xi=1:0.01:10;
yi=interp1(x,y,xi,'spline');plot(xi,yi)

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by