Write a MATLAB function that will generate chi-square randomvariables with v degrees of freedom bygenerating v standard normal, squaringthem and then adding them up. This uses the fact that is chi-squarewith v degrees of freedom. Generate somerandom variables and plot in a histogram. The degrees of freedomshould be an input argument set by the user.