How to plot a curve with 3 points?
Show older comments
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 Comments
Image Analyst
on 28 Jan 2022
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
on 29 Jan 2022
Accepted Answer
More Answers (1)
plot(x,y)
will always plot a curve. Whether you have enough points for the curve to have the intended shape is another question.
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!