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
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
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