poltting a linear relatioship

4 views (last 30 days)
ahmad Saad
ahmad Saad on 5 Jan 2025
Answered: Image Analyst on 5 Jan 2025
How i can plot such figure ???

Answers (1)

Image Analyst
Image Analyst on 5 Jan 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:

Tags

Community Treasure Hunt

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

Start Hunting!