I have cell array which has strings with different length:
rr ={'1 2 5';
'5 6 1';
'12 56 2';
'12 1';
'343 2 -5 1 5';
'1 5 3 2 0'}
I want to make different matrices of numbers and not string based on the strings length:
a1 = [1 2 5; 5 6 1; 12 56 2]
a2 = [12 1]
a3 = [343 2 -5 1 5; 1 5 3 2 0]
I have a large set and my actual data will have many matrices like a1
,a2
,a3
.