title: Calculating Average in Matrix
body: <p>I have a simulation in Matlab that produces a 3D matrix (date, start point, trial) of size &lt;103x11x6 double>. It is a simulation that returns a simulated interest rate over 103 time steps for 11 different starting values. This is repeated 6 times.
   I wish to simply create a new matrix that returns the average of all these trials. i.e. a single time series for each starting point where the time series is the average interest rate of all the trials for each time point.
  Many thanks for any help.</p>