Hello,
From my understanding you want to check if the given data is normally distributed or not.
The chi2gof(x) returns a test decision for the null hypothesis that the data in vector x comes from a normal distribution with a mean and variance estimated from x, using the chi-square goodness-of-fit test. The alternative hypothesis is that the data does not come from such a distribution. The result is 1 if the test rejects the null hypothesis at the 5% significance level, and 0 otherwise.
Some of the answers from the community which might be of relevance to you: