Applying a weighting matrix to a data set
Show older comments
Hello please how can I apply a weighting matrix to a data set with the plot shown below (a shotgun like scattered data and the data is attached named as "Ref_data.txt), and tranformed it to look like the Gaussian in the figure below (the data is attached named as "Refmodel.txt")


I would be happy if I can do this.
4 Comments
Image Analyst
on 23 Dec 2022
Edited: Image Analyst
on 23 Dec 2022
I think we've discussed this in your other question. Anyway, can we assume that ref_model is known? If so we can simply do
weightsVector = ref_data ./ ref_model;
And, by the way, ref_model is not a perfect Guassian. Where did you get it from?
TTA
on 23 Dec 2022
Image Analyst
on 23 Dec 2022
I'm not saying you need a perfect Gaussian. I don't know what you need because you have not explained the context of this situation.
- What does the signal represent in the real world?
- Is there any theoretical model for the physical situation you're experimenting on? If so, then that is the model that we should try to get parameters for.
- What will you do with this model once you have it? For example prediction of a new sample value? Why do you need the model anyway? Why can't you just use the original data to do whatever it is that you need to do?
I think a complete answer would need to know the answer to those three questions, at least.
TTA
on 23 Dec 2022
Answers (0)
Categories
Find more on Physics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!