How To Swap One Cell With Another Cell Within the Same Cell Array?

4 views (last 30 days)
Hello! I'm trying to swap two cells with the same cell array and I can't seem to get it to work. Can someone just give me a basic formula for this?

Answers (1)

Walter Roberson
Walter Roberson on 22 Nov 2017
Example:
YourCell([5 3]) = YourCell([3 5]);

Categories

Find more on Resizing and Reshaping Matrices 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!