Merge columns in a singular table

I have a very large table [7927x2001] I need each row to be merged into one column. All data is numeric
For example lets say its:
T = [1 2 3];
I need
T2 = [123]

3 Comments

@Abbey If
T = [1 22 333];
what would T2 be in this case?
I have a very large table [7927x2001]
@Abbey note the difference between a Matlab table and a matrix.

Sign in to comment.

Answers (1)

Matt J
Matt J on 20 Dec 2021
Edited: Matt J on 20 Dec 2021
You can't get a numeric result with 2001 digitis of precision, but you can make a string:
T=randi(10,5,3)
T = 5×3
2 6 10 8 3 9 8 3 6 7 1 10 6 5 2
T2=num2cell(string(T),1);
T2=strcat(T2{:})
T2 = 5×1 string array
"2610" "839" "836" "7110" "652"

Categories

Products

Release

R2017b

Asked:

on 20 Dec 2021

Commented:

on 20 Dec 2021

Community Treasure Hunt

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

Start Hunting!