Inverting and reshaping matrix which includes NaNs
Mostrar comentarios más antiguos
I have a 3056 x 29 matrix where the rows represent time and columns represent current speed at various heights above the seabed - giving a current speed profile (where column 1 is closest the seabed and 29 furthest away). As there is a tide, which affects the height of water above the seabed over time, I have replaced all values above a certain height (the sea surface) with NaN (as shown below). I would now like to effectively invert the current speed profile for each row (i.e. time step) so that the columns represent water current speed at various depths below the sea surface. I have tried a variety of inverting and reshaping functions but, as the matrix contains NaNs, when these are removed the matrix is irregularly sized - which Matlab cannot work with.
Any suggestions would be appreciated! Many thanks
Jamie

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Oceanography and Hydrology en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!