how to shift rows to match each other

1 view (last 30 days)
Jeremy Kravitz
Jeremy Kravitz on 6 Feb 2016
Commented: dpb on 7 Feb 2016
I have a 202x3 double of depths in meters in increments of 0.1m. for example...
depths = [0.6,0.3,0.4; 0.7,0.4,0.5; 0.8,0.5,0.6; 0.9,0.6,0.7]
and so on until about 20m or so, each column being a different profile. I need help in shifting the rows so that the depths for each profile match. End result being...
depths = [nan,0.3,nan; nan,0.4,0.4; nan,0.5,0.5; 0.6,0.6,0.6]
I then need to by how much each profile shifted in order to apply the shifts to other matrices. Thank you.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!