use matlab for the following question
Goal: Making and using functions and input files, plot gridded variables, use embedded control structures. Assignment: You will write an input file, two functions and a main program that interfaces with each of these 1) Create an input file with the following data (in meters) Wave height = 3 Wavelength = 10 Water depth [1 2 3 4] 2) In coastal engineering, the "wave number" is defined as k = 2x/L whereL is the wave's wavelength There is a relationship between the wave number and the wave's period, T. given by 3)* = gk tanh(kh) Where he is the water depth Create a function called 'wave period that will compute the wave number for each for each of the depths given in (1). This function should take wavelength, wave height, and water depth as input and give wave period as output 3) The velocity components below a linear wave are given by the following equations cosh kih+3) cos(kx-a) 2 ssh th | H sh Rasmt-d) Sith the ne-a) where = 2x/T, w is the x-velocity component, and is the y-velocity component. These equations define velocity components as a function of time and space (X). By holding one or the other constant, velocities can be computed. Create a function to compute the x-velocity and y-velocity components below a wave as a function of x by holding =0 in the above equations. Allow the wer to specify how many points they would like to use in both the x and directions Create a 2x2 subplot of the results wing 20 points in the x-direction and 10 points in the 2-direction. Please note that in these equations starts at and goes to - Hint, you may want to use an embedded "for loop (or several). Another hint type "help quiver" to see what you should be going after Parel Goal: Making and using functions and input files, plot gridded variables, use embedded control structures. Assignment: You will write an input file, two functions and a main program that interfaces with each of these 1) Create an input file with the following data (in meters) Wave height = 3 Wavelength = 10 Water depth [1 2 3 4] 2) In coastal engineering, the "wave number" is defined as k = 2x/L whereL is the wave's wavelength There is a relationship between the wave number and the wave's period, T. given by 3)* = gk tanh(kh) Where he is the water depth Create a function called 'wave period that will compute the wave number for each for each of the depths given in (1). This function should take wavelength, wave height, and water depth as input and give wave period as output 3) The velocity components below a linear wave are given by the following equations cosh kih+3) cos(kx-a) 2 ssh th | H sh Rasmt-d) Sith the ne-a) where = 2x/T, w is the x-velocity component, and is the y-velocity component. These equations define velocity components as a function of time and space (X). By holding one or the other constant, velocities can be computed. Create a function to compute the x-velocity and y-velocity components below a wave as a function of x by holding =0 in the above equations. Allow the wer to specify how many points they would like to use in both the x and directions Create a 2x2 subplot of the results wing 20 points in the x-direction and 10 points in the 2-direction. Please note that in these equations starts at and goes to - Hint, you may want to use an embedded "for loop (or several). Another hint type "help quiver" to see what you should be going after Parel