how to Insert cell array into a cell?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Tobias Egebjerg
am 11 Nov. 2022
Kommentiert: Stephen23
am 11 Nov. 2022
Hey guys, i need help inserting a cell array into a cell in another cell array. My problem has the form of this:
%INPUT
A = {'one''two''three'};
B = {'four''five''six'};
B{1,1} = A{1,:}
%WANTED OUTPUT
B = {'one''two''three'},{'five'},{'six'}
I really hope someone can help
0 Kommentare
Akzeptierte Antwort
VBBV
am 11 Nov. 2022
%INPUT
A = {'one''two''three'};
B = {A,'four''five''six'};
7 Kommentare
Stephen23
am 11 Nov. 2022
D = 1;
C = num2str(D);
A = {'one',C, 'three'};
B = {{'one'},{'two'},{'three'}};
B{1,1} = A ;
n = 10;
for i = 1:n
D = D+1;
C = num2str(D);
A = {{'one'},{C}, {'three'}};
B{i} = {B,A};
end
B{:}
B{1}
B{1}{1}{:}
B{1}{2}{:}
What exactly do you mean by "lost" ?
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Acquisition Using Any Hardware 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!