MATLAB Answers

0

How to Copy data in Cell array

Asked by Hello kity on 3 Jan 2013
Accepted Answer by Matt J

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

  0 Comments

Products

No products are associated with this question.

1 Answer

Answer by Matt J
on 3 Jan 2013
 Accepted answer

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

  0 Comments


Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!