Weighted regression with quality code

I have x variable and y dependant variable. I plotted them in log-log graph but later found that there are some data which I can't trust more and can't remove either. I ended up coding them based on their quality, 4 best to 1 worst. How do I produce regression line and equation with the quality code on top of the equally weighted data? Help needed.

Answers (0)

Asked:

on 23 Nov 2019

Edited:

on 23 Nov 2019

Community Treasure Hunt

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

Start Hunting!