example of sorting stringsto sort a cell array of


Example of sorting strings:

To sort a cell array of strings, also the sort function is used. The illustration is as follows,

>> engcellnames = {'Chemical','Mechanical',.  .  .

     'Biomedical','Electrical', 'Industrial'};

>> sort(engcellnames')

ans =

  'Biomedical'

  'Chemical'

  'Electrical'

  'Industrial'

  'Mechanical'

 

 

Request for Solution File

Ask an Expert for Answer!!
Applications of MATLAB: example of sorting stringsto sort a cell array of
Reference No:- TGS0175353

Expected delivery within 24 Hours