How can I sort valus of a field in struct?
1 回表示 (過去 30 日間)
古いコメントを表示
Hello Everyone
I have an issue to sort values so
I have struct named R contains field : sequance [ ]
Cost [ ]
weights (value)
I want to sort R according to weights in ascending order
please help me.
Thank you
1 件のコメント
Jan
2021 年 5 月 1 日
Is R a scalar struct or a struct array? Are the contents of the weights field scalars?
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Structures についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!