MATLAB: How to prevent cell array within cell array

cell array

Dear Experts
I have two cell arrays. One cell array is a combination of another cell array.
name = { 'Tom', 'Tim'};
record = {'school', 'class', name};
Output becomes nested cell arrays. Desired Output:
record = {'school', 'class', 'Tom', 'Tim'}
Thank you for your help

Best Answer

It's simply
name = { 'Tom', 'Tim'};
record = [{'school', 'class'}, name]