Use matfile for structure data

Is it possible to load, using matfile, a structure data without sort the fields alphabetically?
Thanks Danilo

1 个评论

Fields on a structure are not really sorted in any way as a data structure, you just refer to them by name, they don't need ordering.
Do you mean just when you view them in the variable editor or display the full struct on command line?

请先登录,再进行评论。

回答(1 个)

Stephen23
Stephen23 2016-6-21

0 个投票

If the order of the fields is so important, then you can sort them yourself:
Note that there are lot of options, so read the documentation carefully!

类别

在 帮助中心 和 File Exchange 中查找有关 Structures 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by