How to get the error in two different curve ?
I have two data set , A1 and B1 are 151 datas ,and A2 and B2 are 98 datas(as the attached file Data.mat).
The image below are the two curves.
<</matlabcentral/answers/uploaded_files/129768/2.jpg>>
<</matlabcentral/answers/uploaded_files/129769/1.jpg>>
Because of the different number of these two data,I can’t subtract each value directly.
Then,How do I get the error between them ?
———————-The following steps are what I did.———————–
1. Using function ‘saveas’ to save these two image.Before saving these image, I had adjusted the X axis and Y axis in these two image to the same scale.
2. Using function ‘imread’ and ‘rgb2gray’ to read these two image and turn them into black and white graphics.
3. Using function ‘imsubtract’ to get the error between them.
——————————————————————————————
There are some disadvantage in this way.
So I want to ask the better way to slove this problem.
Thank you so much !I have two data set , A1 and B1 are 151 datas ,and A2 and B2 are 98 datas(as the attached file Data.mat).
The image below are the two curves.
<</matlabcentral/answers/uploaded_files/129768/2.jpg>>
<</matlabcentral/answers/uploaded_files/129769/1.jpg>>
Because of the different number of these two data,I can’t subtract each value directly.
Then,How do I get the error between them ?
———————-The following steps are what I did.———————–
1. Using function ‘saveas’ to save these two image.Before saving these image, I had adjusted the X axis and Y axis in these two image to the same scale.
2. Using function ‘imread’ and ‘rgb2gray’ to read these two image and turn them into black and white graphics.
3. Using function ‘imsubtract’ to get the error between them.
——————————————————————————————
There are some disadvantage in this way.
So I want to ask the better way to slove this problem.
Thank you so much ! I have two data set , A1 and B1 are 151 datas ,and A2 and B2 are 98 datas(as the attached file Data.mat).
The image below are the two curves.
<</matlabcentral/answers/uploaded_files/129768/2.jpg>>
<</matlabcentral/answers/uploaded_files/129769/1.jpg>>
Because of the different number of these two data,I can’t subtract each value directly.
Then,How do I get the error between them ?
———————-The following steps are what I did.———————–
1. Using function ‘saveas’ to save these two image.Before saving these image, I had adjusted the X axis and Y axis in these two image to the same scale.
2. Using function ‘imread’ and ‘rgb2gray’ to read these two image and turn them into black and white graphics.
3. Using function ‘imsubtract’ to get the error between them.
——————————————————————————————
There are some disadvantage in this way.
So I want to ask the better way to slove this problem.
Thank you so much ! error, two curve MATLAB Answers — New Questions