poltting a linear relatioship

Réponses (1)

Image Analyst
Image Analyst le 5 Jan 2025

0 votes

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!

Translated by