transform a cell into a column vector
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alberto Acri
am 13 Jul. 2023
Beantwortet: Dyuman Joshi
am 13 Jul. 2023
Hi. I have a cell 'test' characterized in the first row by a 29x1 array and in the second row by a 27x1 array.
I want to get an array of size 56x1 where the elements are in order, so there are first the 29 numbers of the first array and then the 27 numbers of the second array.
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 13 Jul. 2023
load('test.mat')
%Vertically concatenate into an array
z = vertcat(test{:})
If you want to convert the output into a cell then sipmly use curly brackets -
out = {z}
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!