How can I sort valus of a field in struct?
    2 views (last 30 days)
  
       Show older comments
    
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 Comment
  Jan
      
      
 on 1 May 2021
				Is R a scalar struct or a struct array? Are the contents of the weights field scalars?
Accepted Answer
More Answers (0)
See Also
Categories
				Find more on Structures in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
