Hello,
I ask how to make a list from matrix?
I have this:
first={{2, 2, 1, 2, 1, 1, 1, 1, 1, 1}}
I need this
{2, 2, 1, 2, 1, 1, 1, 1, 1, 1}
Thank you ![]()
Hello,
I ask how to make a list from matrix?
I have this:
first={{2, 2, 1, 2, 1, 1, 1, 1, 1, 1}}
I need this
{2, 2, 1, 2, 1, 1, 1, 1, 1, 1}
Thank you ![]()
Since first has one element in it, (which happens to be a list also), then
First@first
should work. You can also try Flatten@first
Thank you ![]()
For more generality please see Flatten[] function, and similar ones.