Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How do I reorder unequal columns in a field

1 回表示 (過去 30 日間)
Gillian Goldhagen
Gillian Goldhagen 2019 年 10 月 7 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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.

回答 (1 件)

Matt J
Matt J 2019 年 10 月 7 日
yourStruct.Vs=permute(yourStruct.Vs,[2,1,3]);

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by