Monday, October 24, 2022

Matlab: sort, flip

>> x={'xy' 'pq' 'ef' 'ab'}

x =

1×4 cell array

{'xy'} {'pq'} {'ef'} {'ab'}

>> flip(x)

ans =

1×4 cell array

{'ab'} {'ef'} {'pq'} {'xy'}

>> sort(x)

ans =

1×4 cell array

{'ab'} {'ef'} {'pq'} {'xy'}

>>

No comments:

Post a Comment