filling the cells of a column of strings

5 views (last 30 days)
Dear all,
I have a column of string variables
and I want to fill the 1rst, 40th, 79th and so forth position of this column as follows
for j=1:hhhh*qqqq*uuu
but it is too slow. Any quicker code?

Accepted Answer

Oleg Komarov
Oleg Komarov on 27 May 2012
You don't need a for loop:
mdata1(1:39:hhhh*qqqq*uuu,11) = {'01-01-2001'};

More Answers (0)


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by