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

assign a cell array to first row of another cell array

Asked by saharsahar on 28 Jun 2013

how we can assign a cell array as first row of another cell array in loop and how we can acces the data?

Thanks

0 Comments

saharsahar

Products

No products are associated with this question.

1 Answer

Answer by per isakson on 29 Jun 2013
Edited by per isakson on 29 Jun 2013

Try this:

    %%
    another_cell_array  = cell( 3, 1 );
    my_cell_array       = {'my','cell','array'};
    another_cell_array{1,1} = my_cell_array;
    ca1 = another_cell_array{1,1}
    str = another_cell_array{1,1}{1,2}

returns

    ca1 = 
        'my'    'cell'    'array'
    str =
    cell

.

"in loop" how do you mean?

0 Comments

per isakson

Contact us