MATLAB: Join cell arrays together

cellcell arraycell arraysMATLAB

let us assume that I have this cell array
x =
5×1 cell array
{'the_output'}
{'the_output'}
{'the_output'}
{'the_output'}
{'the_output'}
and I have another cell array
y=
5×1 cell array
{[1]}
{[2]}
{[3]}
{[4]}
{[5]}
I want matlab to combine x and y to form, let us say, another cell array called z and it's value
z =
5×1 cell array
{'the_output1'}
{'the_output2'}
{'the_output3'}
{'the_output4'}
{'the_output5'}
I want this to be done without using loops and conditions statements

Best Answer

cellstr(string(x)+string(y))