Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How do I reorder unequal columns in a field

1 Ansicht (letzte 30 Tage)
Gillian Goldhagen
Gillian Goldhagen am 7 Okt. 2019
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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.

Antworten (1)

Matt J
Matt J am 7 Okt. 2019
yourStruct.Vs=permute(yourStruct.Vs,[2,1,3]);

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by