could anyone help me to arrange the number in set brackets {}

1 view (last 30 days)
i am having a matrix a=[1 2;
1 3;
2 4;
3 4]
I want to arrange the numbers present in matrix as set brackets.
{1 2}
{1 3}
{2 4}
{3 4}
Could anyone please help me on this.

Answers (1)

madhan ravi
madhan ravi on 12 Sep 2019
num2cell(a,2)

Categories

Find more on Data Types in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!