I have 2 data points representing x,y (0,3) and (4,0). What code do I use to plot a line or carry out a linear interpolation?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have 2 data points representing x,y (0,3) and (4,0). What code do I use to plot a line or carry out a linear interpolation?
0 Commenti
Risposta accettata
Rik
il 3 Ott 2018
There are many ways to determine the formula for the line that passes through two points. One of the ways I find the easiest is to use polyfit and polyval.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Interpolation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!