How to plot a continuous graph from distinct points.

How to plot a continuous graph by joining the distinct points created by two array of unqual length.
Suppose:-
x=[1 3 5 6]
y=10
plot(x,y,'o')
here you will get some distinct point graph but i want a continuous one.
Help me that.
thanks

 採用された回答

Torsten
Torsten 2019 年 6 月 27 日

0 投票

x=[1 3 5 6];
y=10*ones(size(x));
plot(x,y,'o')

1 件のコメント

sourav  malla
sourav malla 2019 年 6 月 27 日
Thanks it worked out but you need to remove the marker..
Thanks

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

その他の回答 (1 件)

Menatallah Ayman
Menatallah Ayman 2019 年 10 月 29 日

0 投票

s(x) = Im{e(−x+i2πx)}.

1 件のコメント

Steven Lord
Steven Lord 2019 年 10 月 29 日
This doesn't seem related to the original question. Please ask it as a separate question and include more details about what you're trying to do and/or the problem you're experiencing.

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2019a

タグ

質問済み:

2019 年 6 月 27 日

コメント済み:

2019 年 10 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by