MATLAB Answers

0

How do I reorder unequal columns in a field

Asked by Gillian Goldhagen on 7 Oct 2019
Latest activity Answered by Matt J
on 7 Oct 2019
I am trying to take the Vs field and reorder it to be 294 x 130 x 84 double.
If necissary I could also make a new Vs out of the other information in the structure but I am not sure how to do that either. I have tried
C = Lat,Long,Depth in a 3x1 cell
catpad(3,C{:})
but that gave me a 294 x 1 x 3 structure.

  0 Comments

Sign in to comment.

1 Answer

Answer by Matt J
on 7 Oct 2019

yourStruct.Vs=permute(yourStruct.Vs,[2,1,3]);

  0 Comments

Sign in to comment.