x= [1.2 1.5 1.9];
y=[5.5e15 9.9e15 7.8e15];
I want to plot a graph like this using the 3 points .How can I do it?

댓글 수: 2

Image Analyst
Image Analyst 2022년 1월 28일
Three points are enough to define a quadratic, but not a Rayleigh-like curve like you're showing. You need more, or else a formula.
Vanessa Chimedza
Vanessa Chimedza 2022년 1월 29일
Thank you.

댓글을 달려면 로그인하십시오.

 채택된 답변

Voss
Voss 2022년 1월 28일

0 개 추천

You can plot those three points and connect them with line segments using the plot() function:
x= [1.2 1.5 1.9];
y=[5.5e15 9.9e15 7.8e15];
plot(x,y)
It's not clear how the plot you want is related to those points. Maybe by fitting a curve?

추가 답변 (1개)

Matt J
Matt J 2022년 1월 28일
편집: Matt J 2022년 1월 28일

0 개 추천

plot(x,y)
will always plot a curve. Whether you have enough points for the curve to have the intended shape is another question.

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2022년 1월 28일

댓글:

2022년 1월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by