Comparing sample and reference plots

Hi. I want to compare a sample plot with the reference plot and find out the the probability of matching or a correlation coefficient . How can I do so ?

4 Comments

What you have?
I have a raman spectra plot and I have to compare it with a reference spectra and find out the correlation betwen them or probablity of matching?
Read about corr2.
But the two matrixes here doesn't have the same number of datapoints.

Sign in to comment.

Answers (1)

Hi Ananya, as I understand you want to find out correlation coefficient between the two plots, and the matrices you have are also not of same size, you can use "interp", you can use the following link:
to find out the correlation coefficients you can use the following link for correlation:
https://www.mathworks.com/matlabcentral/answers/346341-correlation-between-two-matrices-with-different-number-of-rows-and-columns

Categories

Tags

Asked:

on 17 Jun 2020

Answered:

on 11 Dec 2020

Community Treasure Hunt

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

Start Hunting!