MATLAB: How to Copy data in Cell array

cell matrix index

Hi, I have a cell array ('raw'), which is as below. i have another cell array which contains the data ('data'), data should be in the NaNs from positons 3,2 till 5,4 (so all NaNs inside).**
If i do
raw{3,2}=data
then it created another cellarray in that cell instead of fulling all the NaN. not exactly what i want, how can i make it the way i want? 🙂
NaN 'Mean' NaN NaN
NaN 'X' 'Y ' 'Z'
'Name1' NaN NaN NaN
'Name2' NaN NaN NaN
'Name3' NaN NaN NaN

Best Answer

raw(3:5,2:4)=data