I have some climate data that I'm having a hard time visualzing in MATLAB. I have 3D temperature matrix with dimensions of 65x49x20. I also have vectors of latitude(49x1), longitude (65x1), and altitude (20x1). I've tried creating a meshgrid out of lat, lon, and altitude, and then scatter3/surf/mesh the meshgrid with the 3D temperature data (e.g. scatter3(xmg,ymg,zmg,T)), but keep running into errors about vectors not being the same length. But everything is the same size! the temp matrix as well as the meshgrid I've created all have the same dimensions, yet I can't seem to be able to plot anything. Anyone have ideas of what I'm doing wrong?