how can i solve
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
mohammed tharwat
am 22 Mär. 2015
Beantwortet: Image Analyst
am 22 Mär. 2015
X 0 0.5 1.5 2 3 4 5
Y 0.32 2.6 7.05 11.74 15.83 22.3 25.9
a) Plot the data in the above table as 'diamonds' (not connected by line).
b) Obtain the best fitting line to the data. (Write the equation on this paper).
c) Add to the previous figure a plot of the best fitting line. Use more data points for this plot. Use x values ranging from 0 to 5 in a step of 0.1. This curve must be a line (without symbols).
d) Add grid to the plot.
2 Kommentare
Star Strider
am 22 Mär. 2015
Give it a go yourself this time.
You will need to read the plot, polyfit, polyval, and Colon(:) documentation.
Akzeptierte Antwort
Image Analyst
am 22 Mär. 2015
I imagine it's like the demo in the help but maybe a bit fancier. See attached demo (below the image it creates) that I've posted before. Adapt as needed.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/175518/image.jpeg)
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!