I did some beam forming simulations in Matlab and after all the calculations I end up in a graph that looks like the attached image. Now I want to find an equation that fits this graph. For example I know the vector x=[1:1:20] and I need to find the values of y=[7 7 7 7 7 7 7 7 9 9 9 12 12 12 10 10 10 10 10 10] through some equation. It looks like a stair case function that resembles somewhat to a Gaussian curve but I couldn't find any equation for discrete Gaussian. Can you kindly guide me what is the best possible way to find an equation that fits this curve?

2026-03-25 22:09:42.1774476582
How to find an equation through graph?
46 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
Use a combination of step and ramp functions to make up your graph. They are defined as follows:
If you want a single function that mimics your data then Fourier series is the right approach. The figure below is the Fourier approximation of your data for 8 terms in the series but as the number of terms is larger so is the approximation better.