title: How do I turn 3x4x81x97 matrix into (long) column vector in Matlab
body: <p>I have a data matrix (XW_region) that is size 3x4x81x97. Put differently, XW_region is indexed as (day,time,lat,lon), so there are 4 lat/lon grids (i.e. maps, populated by XW_region values) per day for 3 days, leading to 12 lat/lon grids total.</p>
  
  <p>e.g. size(XW_region) = 3 4 81 97</p>
  
  <p>What I want to do is take each XW_region value from each grid cell from each time from each day, and put them into one (long) column vector. From there I want to create a boxplot of the data. I know how to do the boxplot, just need to get the data all combined into one column vector.</p>
  
  <p>Do I need to use the squeeze function to break out each map by day and time?</p>
  
  <p>Thanks!</p>