Sum Y Values for Repeating X Values to Plot 0-Crossing Point

  • Context: MATLAB 
  • Thread starter Thread starter DariusZizys
  • Start date Start date
  • Tags Tags
    Plot Point Sum
Click For Summary
SUMMARY

The discussion focuses on summing Y values for repeating X values in a dataset containing coordinates of 9 curves on the same x-axis. The user seeks to identify where the summed Y values cross the zero axis using a bar plot. The recommended solution involves utilizing the accumarray function in MATLAB to aggregate Y values corresponding to each unique X value effectively.

PREREQUISITES
  • Understanding of MATLAB programming
  • Familiarity with the accumarray function in MATLAB
  • Basic knowledge of data visualization techniques
  • Concept of zero-crossing in data analysis
NEXT STEPS
  • Explore MATLAB's accumarray function in detail
  • Learn how to create bar plots in MATLAB
  • Research methods for detecting zero-crossing points in datasets
  • Investigate data aggregation techniques in MATLAB for large datasets
USEFUL FOR

Data analysts, MATLAB users, and anyone involved in numerical data visualization and analysis, particularly those working with repetitive datasets and zero-crossing detection.

DariusZizys
Messages
1
Reaction score
0
Hello guys,

Have an issue here.
I have a large array of numbers, X and Y values.These are coordinates of 9 curves on the same x-axis , so the X values are repeating (433 X values repeating 9 times), what I need to do is to sum Y values for each X value separately. and then plot it (bar plot would be great), I need to see at which place the sum ofY values cross he 0 axis ( the Y values are both possitive an negative).

Thanks in advance!
 
Physics news on Phys.org

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K