How do you find(tell, separate, group) the difference between these two graphs(datas) or calculate and grouping these two graphs?
1 view (last 30 days)
Show older comments
I want to find a way to tell these two cases data as shown in the pictures without comparing to each other.
One is typically reducing from highest to lowest; another is at some range; there are modified.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/602255/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/602260/image.png)
Thank you.
2 Comments
Scott MacKenzie
on 30 Apr 2021
Edited: Scott MacKenzie
on 30 Apr 2021
Why don't you put these plots in the same graph. The "difference" (that's what you are looking for, I think) will be visually apparent. That might be a good starting point. But, having read your question several times, it's not clear to me what you are trying to do. Please try to clarify. Posting the script or data might help, as well.
Answers (1)
Puru Kathuria
on 2 May 2021
Hi,
You can start with combining multiple plots in the same graph for a better visual analysis.
%Example:
x = rand(1,10); y = rand(1,10);
plot(x);
hold on; %retain current plot and add new plot
plot(y)
Furthermore, you can move forward with bivariate analysis, finding correlation between both the variables or even as simple as finding differences between the values of these variables (euclidean/manhattan distance). This step will depend on the problem you are trying to solve.
0 Comments
See Also
Categories
Find more on 2-D and 3-D Plots 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!