poltting a linear relatioship

3 visualizzazioni (ultimi 30 giorni)
ahmad Saad
ahmad Saad il 5 Gen 2025
Risposto: Image Analyst il 5 Gen 2025
How i can plot such figure ???

Risposte (1)

Image Analyst
Image Analyst il 5 Gen 2025
You can use polyfit to fit your data to a line, then use plot to plot the fitted line and the original data. Attached are examples.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by