poltting a linear relatioship

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

Asked:

on 5 Jan 2025

Answered:

on 5 Jan 2025

Community Treasure Hunt

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

Start Hunting!