How do I find the zero crossings for a function sinx/x against x?
10 views (last 30 days)
ANKUR KUMAR on 11 Jul 2021
Do you mean to find the x values which cooresponds to the zero in the y values?
I do not think you have zero value in y variables (It is close to zero, but not exactly zero).
This is an example using the round function so that it yields nearest integer value.
x_vals contains the x values which corresponds to zero in y values.