Merging columns within a single matrix

I have a 5x10 matrix and I would like to use a box plot to graph the data in columns 1 and 3 as one box. In other words I would like to merge columns 1 and 3 into one column. How might I do this?
I have been attempting to use A(:,[1 3]); but I get a new matrix...any suggestions?
Thank you

More Answers (1)

how to convert the 10double into 1double value in matlab?

Categories

Find more on Get Started with MATLAB 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!