Switching vector position in a cell array

6 次查看(过去 30 天)
Hi,
I have a cell array a = {'Susan' 'John'};
May I know if it is possible to switch positions of two vectors at the same time to become a = {'John' 'Susan'}?
For vector, we can write a([1 2]) = a([2 1]); I would like to have something like to apply for cell array. Thank you!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by