how to plot in curve

1 回表示 (過去 30 日間)
SARAH LONER
SARAH LONER 2019 年 11 月 30 日
コメント済み: KALYAN ACHARJYA 2019 年 11 月 30 日
i have value of x=[1 2 3 4 5 6 10] and y=[2 3 5 6 7 8 7]
i need to plot lik curve
my centre point will be zero and left side should be my x values and right sideshould be my y values
check out image lik that i need to plot.kindly help me

採用された回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 11 月 30 日
Hard way:
x=[1 2 3 4 5 6 10];
x=-x;
y=[2 3 5 6 7 8 7];
data=[x,y];
plot(-length(data)/2:1:(length(data)/2)-1,[x,y]);
set(gca, 'YTick', []);
  2 件のコメント
SARAH LONER
SARAH LONER 2019 年 11 月 30 日
but sir i need lik curve form as i attached my sample
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 11 月 30 日
You can change the x and y values, so that it appears the simmilar curve. The shape of the curve appears based on its data.

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

その他の回答 (1 件)

SARAH LONER
SARAH LONER 2019 年 11 月 30 日
i had dataset of x sample and y sample i need to plot both in one graph that too in curve form left shld my x values and right shld my y values. finally my result shld join the values and it shld be in curve form

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by