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

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

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 Exchange에서 2-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